Electronics and Communication Engineer. Learning programming since 2020. Skills in React, Next.js, MongoDB, Node.js, Express.js and other programming essentials.
"Doesn't work"
PS C:\Windows\system32> Get-ExecutionPolicy
Restricted
PS C:\Windows\system32> Get-ExecutionPolicy Unrestricted
Get-ExecutionPolicy : Cannot bind parameter 'Scope'. Cannot convert value "Unrestricted" to type
"Microsoft.PowerShell.ExecutionPolicyScope". Error: "Unable to match the identifier name Unrestricted to a valid
enumerator name. Specify one of the following enumerator names and try again:
Process, CurrentUser, LocalMachine, UserPolicy, MachinePolicy"
At line:1 char:21
"Doesn't work"
PS C:\Windows\system32> Get-ExecutionPolicy
Restricted
PS C:\Windows\system32> Get-ExecutionPolicy Unrestricted
Get-ExecutionPolicy : Cannot bind parameter 'Scope'. Cannot convert value "Unrestricted" to type
"Microsoft.PowerShell.ExecutionPolicyScope". Error: "Unable to match the identifier name Unrestricted to a valid
enumerator name. Specify one of the following enumerator names and try again:
Process, CurrentUser, LocalMachine, UserPolicy, MachinePolicy"
At line:1 char:21
There is set-execution policy
use Set-ExecutionPolicy Unrestricted
not Get-ExecutionPolicy Unrestricted