Command Prompt Has Been Disabled By Administrator
Getting this error message, when you try to access the Command Prompt?
"The command Prompt has been disabled by your administrator"
You can get the Command prompt window to start functioning once again by following the steps illustrated below:
Begin by clicking on the "Start" menu on the taskbar. Followed which, click on "Run".
In the "Run" window, type: (preferably copy and paste from here)
This would launch the Command Prompt window.
You can also enable the command prompt window using the Registry Editor or Group Policy Editor.
Let's start first, by illustrating how to do it using the Registry Editor.
Click on the "Start" menu on the taskbar. Followed which, click on "Run".
In the "Run" window, type: regedit and click on "OK"
Navigate to:
HKEY_CURRENT_USER \Software \Policies \Microsoft \Windows \System
On the right side of the window, locate the key titled "DisableCMD" and double click on it.
In the "Edit DWORD Value" in the "Value data" field enter value as 0 and click on "OK".
Close the Registry Editor window. That's all to it.
Using the Group Policy Editor involves this:
Begin again by clicking on the "Start" menu on the taskbar. Followed which, click on "Run".
In the "Run" window, type: gpedit.msc and then click on "OK"
Navigate to the following location:
User Configuration\ Administrative Templates\ System
In the right pane of the window, double click on "Prevent access to the command prompt"
In the "Prevent access to the command prompt properties" dialog box that opens, under the "Setting" tab, click on "Not configured" and then on "Apply" button and "OK".
Working out any of the given three methods would allow an easy access to command prompt window.
You can get the Command prompt window to start functioning once again by following the steps illustrated below:
Begin by clicking on the "Start" menu on the taskbar. Followed which, click on "Run".
In the "Run" window, type: (preferably copy and paste from here)
REG add HKCU\Software\Policies\Microsoft\Windows\System /v DisableCMD /t REG_DWORD /d 0 /fand click on "OK"
This would launch the Command Prompt window.
You can also enable the command prompt window using the Registry Editor or Group Policy Editor.
Let's start first, by illustrating how to do it using the Registry Editor.
Click on the "Start" menu on the taskbar. Followed which, click on "Run".
In the "Run" window, type: regedit and click on "OK"
Navigate to:
HKEY_CURRENT_USER \Software \Policies \Microsoft \Windows \System
On the right side of the window, locate the key titled "DisableCMD" and double click on it.
In the "Edit DWORD Value" in the "Value data" field enter value as 0 and click on "OK".
Close the Registry Editor window. That's all to it.
Using the Group Policy Editor involves this:
Begin again by clicking on the "Start" menu on the taskbar. Followed which, click on "Run".
In the "Run" window, type: gpedit.msc and then click on "OK"
Navigate to the following location:
User Configuration\ Administrative Templates\ System
In the right pane of the window, double click on "Prevent access to the command prompt"
In the "Prevent access to the command prompt properties" dialog box that opens, under the "Setting" tab, click on "Not configured" and then on "Apply" button and "OK".
Working out any of the given three methods would allow an easy access to command prompt window.
Help For Command Prompt Window
Here's a small tutorial, as to how you can get a help on using command prompt commands in a notepad for quick reference.
Click on "Start" menu on the taskbar and then click on "All programs" followed by "Accessories" and then "command prompt"
A Command prompt window would open.
In the "Command prompt" window that opens, type this:
To read the Commands.txt file, you can launch Notepad and just open the file from the location where you created it (As mentioned above, if you haven't changed the location, it would be there in C:\Documents and Settings\Username.
However, now that you are in the command prompt window, there is an easier way out.
In the next command line, enter the command
This would open the notepad "Command.txt" from its location and you can refer the help commands from there.
You have all the commands with their explanation with you.
A Command prompt window would open.
In the "Command prompt" window that opens, type this:
help>commands.txtThis would create a list of all commands to help you to use the command prompt window. The file is created in whatever directory you are in, at present. By default the directory where the command prompt help is created would be C:\Documents and Settings\Username (Here username would be the name with which you login to windows)
To read the Commands.txt file, you can launch Notepad and just open the file from the location where you created it (As mentioned above, if you haven't changed the location, it would be there in C:\Documents and Settings\Username.
However, now that you are in the command prompt window, there is an easier way out.
In the next command line, enter the command
start commands.txt
This would open the notepad "Command.txt" from its location and you can refer the help commands from there.
You have all the commands with their explanation with you.
Convert FAT into NTFS File System
A simple one step on how to convert FAT file system into NTFS:
Click on "Start" menu on the taskbar and then click on "All programs" followed by "Accessories" and then "command prompt"
In the "Command prompt" window that opens, type this:
Thats all. Conversion may take a while and once completed, you need to reboot your system for the effect to take place.
In the "Command prompt" window that opens, type this:
convert d: /fs:ntfsThis is to convert your D drive into NTFS. If you wish to convert another drive to NTFS you need to replace the drive letter "D" to "E" or "F", the drive that is applicable.
Thats all. Conversion may take a while and once completed, you need to reboot your system for the effect to take place.
Change The Color of Command Prompt Window
I am sure you would love to try out this. The original black and white window looks dull but here you can color the command prompt window with a color that compliments your theme, or just your favorite color! Let's see how we can change the background as well as font color of the window.
The trick lies in the Registry Editor again!
We start by clicking on "Start" menu and then selecting and clicking on "Run"
In the "Run" window type "regedit" and click on "OK"
In the "Registry Editor" window that opens, navigate to:
My Computer \ HKEY_CURRENT_USER \ Software \ Microsoft \Command Processor
Now, refer to the hexadecimal chart shown below and pick up two hexadecimal values.
The first digit of this value determines the background color, and the second digit determines the foreground color of the text.
So, in the right-pane of the Registry Editor window, locate and click the DWORD value "DefaultColour". In the "Edit DWORD Value" window, change the value data from default 0 to any combination, here we selected a combination of "DE"
The resulting window would then look like this:
Well, you can try out a better permutation-combination to get a color combination of your choice.
In the "Run" window type "regedit" and click on "OK"
In the "Registry Editor" window that opens, navigate to:
My Computer \ HKEY_CURRENT_USER \ Software \ Microsoft \Command Processor
Now, refer to the hexadecimal chart shown below and pick up two hexadecimal values.
The first digit of this value determines the background color, and the second digit determines the foreground color of the text.
So, in the right-pane of the Registry Editor window, locate and click the DWORD value "DefaultColour". In the "Edit DWORD Value" window, change the value data from default 0 to any combination, here we selected a combination of "DE"
The resulting window would then look like this:
Well, you can try out a better permutation-combination to get a color combination of your choice.
F-Command Keyboard Shortcuts For Command Prompt!
We have listed below almost all the possible F-Command keyboard shortcuts [For Command Prompt], for your reference. Incase you feel we have still missed out on some, please feel free to comment. We will add the same here.
- F1: Repeats the last command line, getting every single alphabet that was typed earlier. This is also accomplished by clicking the "right arrow"
- F2: Displays a dialog asking user to "enter the char to copy up to" from the last command line

- F3: Repeats the last command line typed
- F4: Displays a dialog asking user to "enter the char to delete up to" from the last command line

- F5: Goes back one command line
- F6: CTRL+Z (^z)

- F7: Displays a menu with the command line history

- F8: Repeats previous command lines, starting with recent one first
- F9: Displays a dialog asking user to "enter a command number", [0 is for first command line entered]

- Esc: deletes the entire line










Listed/Ranked:
The Tech Directory
Cluster Maps