Reset-WindowsUpdate.ps1 prohibited from executing in current Windws10 build

John Lenz 1,726 Reputation points
2020-08-17T18:11:27.957+00:00

Reset-WindowsUpdate.ps1 is an existing script from Ryan Nemeth That I have used in the past.
When I ran it on a Win10 system I was having problems with in WSUS updates from the server, PowerShell said in Windows 10 it was locked down to prevent malicious scripts. There is a lot of configuration in the PowerShell.

How do I provide one-time permission to run the WindowsUpdate script?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,584 questions
0 comments No comments
{count} votes

Accepted answer
  1. 2020-08-17T18:16:58.79+00:00

    From an elevated Powershell prompt run Set-ExecutionPolicy unrestricted and try again

    18030-17-08-2020-20190800.png


1 additional answer

Sort by: Most helpful
  1. Rita Hu -MSFT 9,626 Reputation points
    2020-08-18T02:15:56.81+00:00

    Hi JohnLenz-5880,

    Thanks for posting on this forum.

    I agree with mariette-knap. This script does help. Here is a related link for your reference:
    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7

    Reference picture:
    18172-10.png

    18057-11.png

    Please don't forget to MARK the answer if they are helpful.

    Regards,
    Rita

    0 comments No comments