Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> Set-ExecutionPolicy -Scope LocalMachine
cmdlet Set-ExecutionPolicy at command pipeline position 1
Supply values for the following parameters:
ExecutionPolicy:
Set-ExecutionPolicy : Cannot bind parameter 'ExecutionPolicy'. Cannot convert value "" to type
"Microsoft.PowerShell.ExecutionPolicy". Error: "The identifier name cannot be processed because it is either too
similar or identical to the following enumerator names: Unrestricted, RemoteSigned, AllSigned, Restricted, Default,
Bypass, Undefined. Use a more specific identifier name."
At line:1 char:1
+ Set-ExecutionPolicy -Scope LocalMachine
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-ExecutionPolicy], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
PS C:\WINDOWS\system32> Set-ExecutionPolicy -Scope LocalMachine
cmdlet Set-ExecutionPolicy at command pipeline position 1
Supply values for the following parameters:
ExecutionPolicy: c:\reset-startmenu.ps1
Set-ExecutionPolicy : Cannot bind parameter 'ExecutionPolicy'. Cannot convert value "c:\reset-startmenu.ps1" to type
"Microsoft.PowerShell.ExecutionPolicy". Error: "Unable to match the identifier name c:\reset-startmenu.ps1 to a valid
enumerator name. Specify one of the following enumerator names and try again:
Unrestricted, RemoteSigned, AllSigned, Restricted, Default, Bypass, Undefined"
At line:1 char:1
+ Set-ExecutionPolicy -Scope LocalMachine
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-ExecutionPolicy], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
PS C:\WINDOWS\system32> Set-ExecutionPolicy -Scope LocalMachine