Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

change execution policy in powershell

Set-ExecutionPolicy -ExecutionPolicy <PolicyName>
#Example:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

#To set the execution policy in a particular scope:
Set-ExecutionPolicy -ExecutionPolicy <PolicyName> -Scope <scope>
#Example:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

 
PREVIOUS NEXT
Tagged: #change #execution #policy #powershell
ADD COMMENT
Topic
Name
2+2 =