Windows PowerShell and Execution Policy
Checking and Setting the Execution Policy in Windows PowerShell
To run the scripts that set your application registrations, you need to be sure that you have the proper permissions. If you have already set the execution policy in Windows PowerShell, continue to the next section.
1. To check the execution policy in Windows PowerShell, type Get-ExecutionPolicy -List at the command prompt. The list appears, as shown here:
2. If the ExecutionPolicy for LocalMachine is Undefined, enter Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine -Force at the prompt.
3. To verify the change on your machine, enter Get-ExecutionPolicy -List again. The ExecutionPoicy should have changed to Unrestricted. The following figure illustrates steps 2 and 3, with the expected result: