Back to script samples page
Setting execution policies as remote signed

This command will set a policy that requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher. You can replace ‘RemoteSigned’ with your desired execution policy name to alter the policy applied.

#Setting execution policies as remote signed.

#This command will display your current execution policy. This is worth noting if you wish to revert back at a later point.
Get-ExecutionPolicy

#This command will set a policy that requires that all scripts and configuration files downloaded from the Internet be signed by a trusted publisher. You can replace ‘RemoteSigned’ with your desired execution policy name to alter the policy applied.
Set-ExecutionPolicy RemoteSigned
Downloaded 0 times
- - - - - (0)
Comments

No Comments