Well, as you might know, when you are attempting to run a script from poweshell and have not used:
Get-ExecutionPolicy
You will get
File C:\scripts\test.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-
help about_signing" for more details.
At line:1 char:19
+ c:\scripts\test.ps1 <<<<
So i did use this get-executionpolicy
thing at the end. And i got a lovely message from the console:
Restricted
So i tried
Set-ExecutionPolicy RemoteSigned
But then from the console i got another message:
Get-ExecutionPolicy : Cannot bind parameter 'Scope'. Cannot convert value "RemoteSigned" to type "Microsoft.PowerShell
ExecutionPolicyScope" due to invalid enumeration values. Specify one of the following enumeration values and try again
The possible enumeration values are "Process, CurrentUser, LocalMachine, UserPolicy, MachinePolicy".
At line:1 char:20
+ Get-ExecutionPolicy <<<< RemoteSigned
+ CategoryInfo : InvalidArgument: (:) [Get-ExecutionPolicy], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.GetExecutionPolicyCommand
What am i supposed to do!?