Tuesday, 7 January 2014

Enable or disable command prompt:

There may arise a message "The command has been disabled by your administrator. Press any key to continue...." when you try to open the command prompt. Here is the solution..

Gpedit:
1. Open gpedit.msc
2. Go through the direction: User Configuration\Administrative Templates\System
3. On the right side extended view locate "prevent access to command prompt", right click it and select edit.
4. Inorder to disable select enable option.
5. Inorder to enable, select disable option.

Regedit:
1. Open registry editor through administrator.
2. Navigate to: HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System and locate DisableCMD.
3. If it is present click and edit the value to 0 to enable.
4. If it is not present, create a DWORD value.
5. To disable, modify the value to 1.
6. To disable command prompt and Scripts modify to 2.





No comments: