EXAMPLE: Command Prompt Enabled
NOTE: The top screenshot is the normal command prompt, and the bottom screenshot is an elevated command prompt.
EXAMPLE: Command Prompt Disabled
NOTE: You will see this message from both command prompts above when set as disabled.
OPTION ONE
Using a REG File Download
1. To Enable Command Prompt and Scripts
NOTE: This is the default setting.
NOTE: This is the default setting.
2. To Disable Command Prompt Only and Allow Scripts
WARNING: Do not prevent (disable) the computer from running batch files (Command Scripts) if the computer uses logon, logoff, startup, or shutdown batch file scripts, or for users that use Terminal Services. They will not work afterwards if you do.
5. Right click on the downloaded .reg file and click on Merge.
6. Click on Run, Continue (UAC-Vista) or Yes (UAC-Windows7), Yes, and then OK when prompted.
7. When done, you can delete the downloaded .reg file if you like.
A) Click on the download button below to download the file below.
B) Go to step 4.
3. To Disable Command Prompt and ScriptsB) Go to step 4.
WARNING: Do not prevent (disable) the computer from running batch files (Command Scripts) if the computer uses logon, logoff, startup, or shutdown batch file scripts, or for users that use Terminal Services. They will not work afterwards if you do.
A) Click on the download button below to download the file below.
4. Click on Save, and save the .reg file to the Desktop.5. Right click on the downloaded .reg file and click on Merge.
6. Click on Run, Continue (UAC-Vista) or Yes (UAC-Windows7), Yes, and then OK when prompted.
7. When done, you can delete the downloaded .reg file if you like.
OPTION TWO
Through the Local Group Policy Editor
1. Open the all users, specific users or groups, or all users except administrators Local Group Policy Editor for how you want this policy applied.
2. In the left pane, click on User Configuration, Administrative Templates, and System. (See screenshot below)
3. In the right pane, right click on Prevent access to the command prompt and click on Properties. (See screenshot above)
4. To Enable the Command Prompt and Scripts
2. In the left pane, click on User Configuration, Administrative Templates, and System. (See screenshot below)
3. In the right pane, right click on Prevent access to the command prompt and click on Properties. (See screenshot above)
4. To Enable the Command Prompt and Scripts
A) Select (dot) Disabled or Not Configured and click on OK. (See screenshot below 5C)
NOTE: Not Configured is the default setting.
B) Go to step 6.
5. To Disable the Command Prompt NOTE: Not Configured is the default setting.
B) Go to step 6.
A) Select (dot) Enabled.
B) Select Yes or No from the drop down menu to Disable or Allow Command Scripts (.cmd and .bat files) to still run.
WARNING: Do not prevent (disable) the computer from running batch files (Command Scripts) if the computer uses logon, logoff, startup, or shutdown batch file scripts, or for users that use Terminal Services. They will not work afterwards if you do.
C) Click on OK.
6. Close the Local Group Policy Editor window. Your done.B) Select Yes or No from the drop down menu to Disable or Allow Command Scripts (.cmd and .bat files) to still run.
WARNING: Do not prevent (disable) the computer from running batch files (Command Scripts) if the computer uses logon, logoff, startup, or shutdown batch file scripts, or for users that use Terminal Services. They will not work afterwards if you do.
C) Click on OK.
OPTION THREE
Manually in Registry Editor
1. Open the Start Menu, then type regedit in the search box and press Enter.
2. If prompted by UAC, then click on the Continue (Vista) or Yes (Windows 7).
3. In regedit, navigate to the location below. (See screenshot below)
NOTE: If you do not have System in the left pane, then right click on Windows and click on New and Key. Type System and press Enter.
D) To Disable Command Prompt Only and Allow Scripts
NOTE: This is the default setting.
2. If prompted by UAC, then click on the Continue (Vista) or Yes (Windows 7).
3. In regedit, navigate to the location below. (See screenshot below)
NOTE: If you do not have System in the left pane, then right click on Windows and click on New and Key. Type System and press Enter.
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System
4. To Disable the Command Prompt
A) In the right pane, right click on a empty area and click on New and DWORD (32-bit) Value. (See screenshot above)
B) Type DisableCMD and press Enter.
C) Right click on DisableCMD and click on Modify. (See screenshot below)
B) Type DisableCMD and press Enter.
C) Right click on DisableCMD and click on Modify. (See screenshot below)
D) To Disable Command Prompt Only and Allow Scripts
- Type 2 and click on OK. (See screenshots below)
E) To Disable Command Prompt and Scripts
WARNING: Do not prevent (disable) the computer from running batch files (Command Scripts) if the computer uses logon, logoff, startup, or shutdown batch file scripts, or for users that use Terminal Services. They will not work afterwards if you do.
WARNING: Do not prevent (disable) the computer from running batch files (Command Scripts) if the computer uses logon, logoff, startup, or shutdown batch file scripts, or for users that use Terminal Services. They will not work afterwards if you do.
- Type 1 and click on OK. (See screenshots below)
F) Go to step 7.
6. To Enable Command Prompt and ScriptsNOTE: This is the default setting.
A) In the right pane, right click on DisableCMD and click on Delete. (See screenshot above)
B) Click on Yes to confirm deletion.
7. Close regedit.B) Click on Yes to confirm deletion.
sumber : http://www.vistax64.com/tutorials/152934-command-prompt-enable-disable.html
No comments:
Post a Comment