0
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 ?
That is being set by group policy so you are overriding your IT Department's settings. You should ask them for a change in policy. That said, I don't find myself using it much (if ever). I have either a prompt or an IDE open where I can run the file in question. – Lieven Keersmaekers – 2019-09-24T11:08:11.320
But this is my personal computer at home, no one uses it but me. How can i fix that ? – Wassim Chaguetmi – 2019-09-24T13:25:38.037
Open
gpedit.msc
. Navigate toUser Configuration -> Administrative Templates -> System
. Check ifDon't run specified Windows applications
is configured. – Lieven Keersmaekers – 2019-09-24T15:43:30.440@LievenKeersmaekers it is not configured. – Wassim Chaguetmi – 2019-09-24T20:11:54.717
That was all I could find about it. If you wish to investigate further, I suggest you download procmon from sysinternals and have it monitor your registry writes. Filter on
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. – Lieven Keersmaekers – 2019-09-25T04:42:21.170