since the first time i tried to work with powershell, i faced this problem: this error
i followed some steps to fix it, and it guided me to doing this:
deleting this directory DisallowRun
from the regedit.
here
when i delete this, i can run powershell properly and normally, but each time i reboot/shutdown my system, i have to do delete this directory again. any help is appreciated.
Edit:
this is my personal computer at home, no one uses it but me. How can i fix that ?
gpedit.msc
. Navigate toUser Configuration -> Administrative Templates -> System
. Check ifDon't run specified Windows applications
is configured.DisallowRun
and enable boot logging in the options. You should be able to find what is writing the registry and draw conclusions (or next steps) from there.