Page 1 of 2 12 LastLast

  1. Joined : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 255
    Windows 10 & Windows 10 Insider Program, Linux Mint 18
       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:	15 
Size:	31.1 KB 
ID:	20861

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


  2. Joined : Oct 2013
    Texas
    Posts : 7,530
    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 System SpecsSystem Spec


  3. Joined : Oct 2014
    Posts : 335
    Windows 10x64 15007
       06 Jun 2015 #3

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


  4. Joined : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 255
    Windows 10 & Windows 10 Insider Program, Linux Mint 18
       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 System SpecsSystem Spec


  5. Joined : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 255
    Windows 10 & Windows 10 Insider Program, Linux Mint 18
       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:	12 
Size:	37.1 KB 
ID:	20862
      My System SpecsSystem Spec


  6. Joined : Feb 2015
    Bamberg Germany
    Posts : 12,905
    Microsoft Windows 10 Pro 64-bit 14393 Multiprocessor Free
       06 Jun 2015 #6

    try using a capital U as in Unrestricted
      My System SpecsSystem Spec


  7. Joined : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 255
    Windows 10 & Windows 10 Insider Program, Linux Mint 18
       06 Jun 2015 #7

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


  8. Joined : Feb 2015
    Bamberg Germany
    Posts : 12,905
    Microsoft Windows 10 Pro 64-bit 14393 Multiprocessor Free
       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 System SpecsSystem Spec


  9. Joined : Oct 2013
    Texas
    Posts : 7,530
    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 System SpecsSystem Spec


  10. Joined : Feb 2015
    Bamberg Germany
    Posts : 12,905
    Microsoft Windows 10 Pro 64-bit 14393 Multiprocessor Free
       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 System SpecsSystem Spec


 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
Solved How to uninstall Apps using Powershell
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...
Customization
Microsoft adds OpenSSH support to PowerShell
Source
Windows 10 News
Group policy :/
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...
General Support
Does Group Policy not work in 9879?
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...
General Support
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 18:45.
Find Us
Twitter Facebook Google+



Windows 10 Forums