Forum Discussion
Abu_Faisal
May 08, 2020Copper Contributor
How to enforce Secure Windows PowerShell
Hello everyone, I'm trying to enforce Secure Windows PowerShell by setting the execution policies to be locally or remotely signed and disable execution policy bypass? Is the below cmd line meet th...
mfessalifi
May 09, 2020Copper Contributor
Have you admin access to your laptop if:
Yes :
- Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
or - Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
No :
- Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
or - Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
NB: The default policy is Restricted, and if you want to force the setting of execution policies, please use GPO, to configure, navigate under Computer Configuration to Policies\Administrative Templates\Windows Components\Windows PowerShell. You should see a setting called Turn on Script Execution.