Windows 10: Cannot Set Execution Policy in Powershell Solved

Page 1 of 2 12 LastLast

  1. Posts : 261
    Windows 10 & Windows 10 Insider Program, Linux Mint 18, Zorin, elementary OS
       06 Jun 2015 #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?

    RichClick image for larger version. 

Name:	Pwrshell.PNG 
Views:	16 
Size:	31.1 KB 
ID:	20861

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


  2. Posts : 8,766
    Windows 10 Pro X64
       06 Jun 2015 #2

    Rich, have a look here and see if it helps

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

  3.    06 Jun 2015 #3

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


  4. Posts : 261
    Windows 10 & Windows 10 Insider Program, Linux Mint 18, Zorin, elementary OS
    Thread Starter
       06 Jun 2015 #4

    Dude said: View Post
    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 ComputerSystem Spec


  5. Posts : 261
    Windows 10 & Windows 10 Insider Program, Linux Mint 18, Zorin, elementary OS
    Thread Starter
       06 Jun 2015 #5

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

    Click image for larger version. 

Name:	Pwrshell2.png 
Views:	13 
Size:	37.1 KB 
ID:	20862
      My ComputerSystem Spec


  6. Posts : 14,961
    Microsoft Windows 10 Pro 64-bit 14393, Windows 10 Insider Fast Ring, Windows 8.1 Update, Ubuntu
       06 Jun 2015 #6

    try using a capital U as in Unrestricted
      My ComputersSystem Spec


  7. Posts : 261
    Windows 10 & Windows 10 Insider Program, Linux Mint 18, Zorin, elementary OS
    Thread Starter
       06 Jun 2015 #7

    Cliff S said: View Post
    try using a capital U as in Unrestricted
    No dice
      My ComputerSystem Spec


  8. Posts : 14,961
    Microsoft Windows 10 Pro 64-bit 14393, Windows 10 Insider Fast Ring, Windows 8.1 Update, Ubuntu
       06 Jun 2015 #8

    rmonroe36 said: View Post
    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 ComputersSystem Spec


  9. Posts : 8,766
    Windows 10 Pro X64
       06 Jun 2015 #9

    rmonroe36 said: View Post
    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 ComputerSystem Spec


  10. Posts : 14,961
    Microsoft Windows 10 Pro 64-bit 14393, Windows 10 Insider Fast Ring, Windows 8.1 Update, Ubuntu
       06 Jun 2015 #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 ComputersSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
Many of the Universal Apps cannot be uninstalled because the button is inactive (grayed out). This might be 'by design' for the Technical Preview since Microsoft wants users to test the Apps. The preferred method is to use the uninstall button...
Group policy :/ in General Support
Thanks to topgundcp https://www.tenforums.com/windows-updates-activation/2605-update-w-10-manually-2.html#post161679 Which got me piddling around with the whole group/ user policy crap I have found to get rid of the silly lock screen at startup...
I am currently having an issue with OneDrive using all my bandwidth when syncing large files. As in, if I were to turn syncing on right now, I wouldn't be able to load a single webpage. I don't know if its mostly a OneDrive issue, or maybe an ISP...
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 09:00.
Find Us