Windows 10: Cannot Set Execution Policy in Powershell

Discus and support Cannot Set Execution Policy in Powershell in Windows 10 Support to solve the problem; 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... Discussion in 'Windows 10 Support' started by rmonroe36, Jun 5, 2015.

  1. rmonroe36 Win User

    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?

    Rich
    Cannot Set Execution Policy in Powershell [​IMG]


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

    :)
     
    rmonroe36, Jun 5, 2015
    #1

  2. Set Execution Policy in Powershell

    Hi,

    Glad to know that the information was found helpful.

    Get back to us for any issues related to Windows. We will be happy to help you.
     
    Deepak_Krishnan R, Jun 5, 2015
    #2
  3. A123 Win User
    Set Execution Policy in Powershell

    Thanks for the link that helps me understand the execution policy
     
    A123, Jun 5, 2015
    #3
  4. Dude Win User

    Cannot Set Execution Policy in Powershell

    Dude, Jun 5, 2015
    #4
  5. Did you try running the command through an elevated command prompt?
     
    cyberrufus, Jun 5, 2015
    #5
  6. rmonroe36 Win User
    rmonroe36, Jun 5, 2015
    #6
  7. rmonroe36 Win User
    Yup but thanks.........


    Cannot Set Execution Policy in Powershell [​IMG]
     
    rmonroe36, Jun 5, 2015
    #7
  8. Cliff S New Member

    Cannot Set Execution Policy in Powershell

    try using a capital U as in Unrestricted
     
    Cliff S, Jun 5, 2015
    #8
  9. rmonroe36 Win User
    No dice*cry
     
    rmonroe36, Jun 5, 2015
    #9
  10. Cliff S New Member
    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.
     
    Cliff S, Jun 5, 2015
    #10
  11. Dude Win User
    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.
     
  12. Cliff S New Member
    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.
     
    Cliff S, Jun 5, 2015
    #12
  13. rmonroe36 Win User

    Cannot Set Execution Policy in Powershell

    Understood!
     
    rmonroe36, Jun 5, 2015
    #13
  14. rmonroe36 Win User
    rmonroe36, Apr 4, 2018
    #14
Thema:

Cannot Set Execution Policy in Powershell

Loading...
  1. Cannot Set Execution Policy in Powershell - Similar Threads - Cannot Set Execution

  2. execution policy

    in Windows 10 Gaming
    execution policy: on my computer I checked the execution policy. these are the results I got:-MachinePolicy Restricted - UserPolicy Undefined - Process Undefined - CurrentUser Undefined - LocalMachine Unrestrictedis it ok that the localmachine is set to unrestricted. Note: I changed the group...
  3. execution policy

    in Windows 10 Software and Apps
    execution policy: on my computer I checked the execution policy. these are the results I got:-MachinePolicy Restricted - UserPolicy Undefined - Process Undefined - CurrentUser Undefined - LocalMachine Unrestrictedis it ok that the localmachine is set to unrestricted. Note: I changed the group...
  4. Group Policy for Powershell Execution

    in Windows 10 Gaming
    Group Policy for Powershell Execution: I enabled "Turn on Script Execution" and only allow signed scripts previously.However, I would like to bypass policy for one specific powershell script without changing my group policy.Is there any way of doing so?I have tried to using the -executionpolicy bypass -file but it...
  5. Group Policy for Powershell Execution

    in Windows 10 Software and Apps
    Group Policy for Powershell Execution: I enabled "Turn on Script Execution" and only allow signed scripts previously.However, I would like to bypass policy for one specific powershell script without changing my group policy.Is there any way of doing so?I have tried to using the -executionpolicy bypass -file but it...
  6. Group Policy for Powershell Execution

    in Windows 10 Customization
    Group Policy for Powershell Execution: I enabled "Turn on Script Execution" and only allow signed scripts previously.However, I would like to bypass policy for one specific powershell script without changing my group policy.Is there any way of doing so?I have tried to using the -executionpolicy bypass -file but it...
  7. Execution Policy in Powershell

    in AntiVirus, Firewalls and System Security
    Execution Policy in Powershell: Hello,For Execution Policy for PowerShell, mine was set to unrestricted, which I changed to restricted, assuming it will make my PC more secure.I tried to learn about this, but I didnt understand whether restricted is the best and the most secure option for someone who uses...
  8. PowerShell 1 Execution policy is bad in registry will not stay changed (fixed)

    in AntiVirus, Firewalls and System Security
    PowerShell 1 Execution policy is bad in registry will not stay changed (fixed): I am having the exact same problem as in this thread: https://answers.microsoft.com/en-us/windows/forum/all/powershell-1-execution-policy-is-bad-in-registry/b2625908-4521-4f49-91de-9cdd8d40e862 I followed the instructions and changed the registry to 'restricted' but...
  9. PowerShell 1 Execution policy is bad in registry

    in Windows 10 BSOD Crashes and Debugging
    PowerShell 1 Execution policy is bad in registry: it was detected as bad by dell who used Norton power eraser to locate the issues in my computer, Norton says they can not fix it, that Microsoft needs to fix it , I came to micorosoft to get help a tech, tried to reinstall Microsoft windows, after the computer restarted a...
  10. Change PowerShell Script Execution Policy in Windows 10

    in Windows 10 Tutorials
    Change PowerShell Script Execution Policy in Windows 10: How to: Change PowerShell Script Execution Policy in Windows 10 How to Set PowerShell Script Execution Policy in Windows 10 The PowerShell script execution policies enables you to determine which Windows PowerShell scripts (if any) will be allowed to run on your...