Cannot Set Execution Policy in Powershell

Page 2 of 2 FirstFirst 12

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

    Cliff S said:
    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.
    Understood!
      My Computer


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

    Solved Explanation


    Finally found link below which used "gpedit" and was my salvation. Can now run my script! :)

    http://absolute-sharepoint.com/2014/...er-2012r2.html

    Rich
      My Computer


  3. Posts : 27,181
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #13

    Good to hear:)
      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 07:15.
Find Us




Windows 10 Forums