"Set-ExecutionPolicy RemoteSigned -Scope CurrentUser" Does Microsoft have a Default Set-Execution command?

Anonymous
2020-08-19T17:16:01+00:00

PS C:\Users\19163> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Execution Policy Change

The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose

you to the security risks described in the about_Execution_Policies help topic at

https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?

[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"):

setting this to yes lets you run deployment workbench however,.....

???Once this is ran can you auto default it back if your done useing Deployment Workbench???

this is a security risk so can we default the policy all at once?

much like SFC/Scannow checks for issues 

a Policy scanner that checks with a default version for changes 

!!!Default and restricted do not lockout Deployment workbench again!!!

see once it was changed it stayed even if it displays restricted again.

I had a error like this before changing the execution policy. If I defaulted it how come when I change it back it no longer has this error?

Windows for home | Windows 10 | Security and privacy

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Anonymous
    2020-08-19T17:36:06+00:00

    Hi and thanks for reaching out. My name is William. I'm a Windows technical expert. I'll be happy to help you out today.

    Yes, you can set it back to default, which is restricted using this command: Set-ExecutionPolicy -ExecutionPolicy Restricted -Scope CurrentUser

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-08-19T18:27:40+00:00

    Yes I have set it back however deployment workbench still runs is there a way to test to make sure this is restricted again outside of what is in the command line?

    thanks for the reply

    0 comments No comments
  3. Anonymous
    2020-08-19T18:33:08+00:00

    Set-ExecutionPolicy -ExecutionPolicy default -Scope CurrentUser

    also works but deployment workbench still opens.

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2020-08-19T18:46:06+00:00

    Deployment bench is an MMC. You can run it our any other process from PS. That has nothing to do with PS script.

    0 comments No comments
  5. Anonymous
    2020-08-19T19:13:44+00:00

    Can you clearly explain what it is that does not answer your question?

    0 comments No comments