Page 1 of 2 12 LastLast
  1.    06 Jun 2015 #1
    Join Date : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 269
    Windows 10 Insider Program, Linux Mint 18.2, LinuxLite, Ubuntu 17.10

    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:	17 
Size:	31.1 KB 
ID:	20861

    Edit: This was a clean install from ISO downloaded from Microsoft site.
      My ComputerSystem Spec
  2.    06 Jun 2015 #2
    Join Date : Oct 2013
    Texas
    Posts : 10,484
    Windows 10 Pro X64

    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
    Join Date : Oct 2014
    Posts : 380
    Windows 10x64 16241

    Did you try running the command through an elevated command prompt?
      My ComputerSystem Spec
  4.    06 Jun 2015 #4
    Join Date : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 269
    Windows 10 Insider Program, Linux Mint 18.2, LinuxLite, Ubuntu 17.10
    Thread Starter

    Quote Originally Posted by Dude 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.    06 Jun 2015 #5
    Join Date : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 269
    Windows 10 Insider Program, Linux Mint 18.2, LinuxLite, Ubuntu 17.10
    Thread Starter

    Quote Originally Posted by cyberrufus 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:	14 
Size:	37.1 KB 
ID:	20862
      My ComputerSystem Spec
  6.    06 Jun 2015 #6
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 16,950
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    try using a capital U as in Unrestricted
      My ComputersSystem Spec
  7.    06 Jun 2015 #7
    Join Date : Oct 2014
    Mid-Hudson Valley, NYS
    Posts : 269
    Windows 10 Insider Program, Linux Mint 18.2, LinuxLite, Ubuntu 17.10
    Thread Starter

    Quote Originally Posted by Cliff S View Post
    try using a capital U as in Unrestricted
    No dice
      My ComputerSystem Spec
  8.    06 Jun 2015 #8
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 16,950
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    Quote Originally Posted by rmonroe36 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.    06 Jun 2015 #9
    Join Date : Oct 2013
    Texas
    Posts : 10,484
    Windows 10 Pro X64

    Quote Originally Posted by rmonroe36 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.    06 Jun 2015 #10
    Join Date : Feb 2015
    Bamberg Germany
    Posts : 16,950
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu

    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


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 21:15.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums