1/18/2024

How to disable powershell on win11 by using bat script

 @echo off


reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun" /v 1 /t REG_SZ /d "powershell.exe" /f


echo PowerShell has been disabled.

pause


沒有留言: