Cannot Set Execution Policy in Powershell

Page 1 of 2 12 LastLast

  1. Posts : 276
    Windows 10 Insider Program, Linux Mint 19, Arcolinux, MX-17
       #1

    Cannot Set Execution Policy in Powershell


    Did not experience this problem until this build (10130) but it may have occurred in the build before that also. As you can see in the attachment, I am in Administrator mode but cannot run a script which installs a dozen or so programs. The programs install if I type a "one-liner" (install-package audacity cyberfox malwarebytes etc.).
    Anyone else experiencing same problem? Any suggestions?

    RichCannot Set Execution Policy in Powershell-pwrshell.png

    Edit: This was a clean install from ISO downloaded from Microsoft site.
      My Computer


  2. Posts : 16,605
    Windows 11 Pro X64
       #2

    Rich, have a look here and see if it helps

    https://www.tenforums.com/general-dis...tml#post223041
      My Computers


  3. Posts : 486
    Windows 10x64 17713
       #3

    Did you try running the command through an elevated command prompt?
      My Computer


  4. Posts : 276
    Windows 10 Insider Program, Linux Mint 19, Arcolinux, MX-17
    Thread Starter
       #4

    Dude said:
    Rich, have a look here and see if it helps

    https://www.tenforums.com/general-dis...tml#post223041
    Kari helped me out previously - that is how I got started with Powershell. Thanks for response!
      My Computer


  5. Posts : 276
    Windows 10 Insider Program, Linux Mint 19, Arcolinux, MX-17
    Thread Starter
       #5

    cyberrufus said:
    Did you try running the command through an elevated command prompt?
    Yup but thanks.........

    Cannot Set Execution Policy in Powershell-pwrshell2.png
      My Computer


  6. Posts : 27,157
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #6

    try using a capital U as in Unrestricted
      My Computers


  7. Posts : 276
    Windows 10 Insider Program, Linux Mint 19, Arcolinux, MX-17
    Thread Starter
       #7

    Cliff S said:
    try using a capital U as in Unrestricted
    No dice
      My Computer


  8. Posts : 27,157
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #8

    rmonroe36 said:
    No dice
    That's how I saw it in a TechNet tutorial and thought maybe it was a case sensitive letter problem. Sorry it wasn't it.
      My Computers


  9. Posts : 16,605
    Windows 11 Pro X64
       #9

    rmonroe36 said:
    Kari helped me out previously - that is how I got started with Powershell. Thanks for response!
    Sorry about that, didn't read through and see you have already posted there. Maybe try reducing the number of apps will help as that has caused an error before.
      My Computers


  10. Posts : 27,157
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #10

    One reminder though, after you set the ExePol to unrestricted and have run your script don't forget to reset it to either Remote Signed(to execute simple everyday scripts such as powershell"(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey"
    Or better yet if you don't use it often,, set it back to restricted. There is malware that can get access to PowerShell and then it'll have total access to your system.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:51.
Find Us




Windows 10 Forums