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
Iยดm getting the error bellow when I try to change the policies
Set-ExecutionPolicy Process Unrestricted Set-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"
Please, what Iยดm doing wrong ? can You help-me ?
I'm running PowerShell with administrative rights
"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
Iยดm getting the error bellow when I try to change the policies
Set-ExecutionPolicy Process Unrestricted
Set-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"
Please, what Iยดm doing wrong ? can You help-me ?
I'm running PowerShell with administrative rights
use Set-ExecutionPolicy Unrestricted
not Get-ExecutionPolicy Unrestricted