Sycnex / Windows10Debloater

Script to remove Windows 10 bloatware.
MIT License
17.91k stars 2.03k forks source link

How to reset Set-ExecutionPolicy? #529

Open dm18 opened 1 year ago

dm18 commented 1 year ago

After using Set-ExecutionPolicy Unrestricted -Force how do you reset Set-ExecutionPolicy to defaults?

Get-ExecutionPolicy -List

    Scope ExecutionPolicy
    ----- ---------------

MachinePolicy Undefined UserPolicy Undefined Process Undefined CurrentUser Undefined LocalMachine Undefined

but what should these be set back to?

LateNightIceCream commented 1 year ago

LocalMachine

See here.

The Set-ExecutionPolicy cmdlet's default scope is LocalMachine, which affects everyone who uses the computer