Disable and Enable UAC, DEP, and Firewall from command prompt

Disable DEP
bcdedit.exe /set {current} nx AlwaysOff

Enable DEP
bcdedit.exe /set {current} nx AlwaysOn

Disable UAC
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

Enable UAC
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f

Disable Firewall:
Netsh Advfirewall set allprofiles state off

Enable Firewall:
Netsh Advfirewall set allprofiles state on

Check status of Firewall:
Netsh Advfirewall show allprofiles

Leave a comment

Your email address will not be published. Required fields are marked *