Monday, January 12, 2009

Disable the Command Prompt

To disable access to the command prompt import the following into the windows registry:

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System] "DisableCMD"=dword:00000001

Now if the user tries to open the command prompt he will get a notification stating: "The command prompt has been disabled by your administrator".

To re-enable access to the command prompt use the following: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System] "DisableCMD"=dword:00000000

No comments:

Post a Comment