I changed the PowerShell execution policy to remotesigned to run some of my PowerShell scripts. After that,
I changed my policy to restricted. However, I still can run my past scripts and new scripts which I made to test the policy.
I think the policy is not reflected in my machine.
How do I fix this problem to apply the policy correctly?
now, get-executionpolicy -list command shows like this, but still I can run .ps1 scripts.
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine Restricted