Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Run Command - Enable or Disable


Run Command - Enable or Disable

How to Enable or Disable "Run" Command Dialog Box in Windows
Published by Brink
27 May 2010
Published by

How to Enable or Disable "Run" Command Dialog Box in Windows


information   Information
This wiil show you how to enable or disable the Run command dialog box for all or specific users in Vista, Windows 7, or Windows 8.


When Run is disabled:
  • Users will not be able to open the Run command box.
  • The Customize Start Menu option to add or remove Run from the Start Menu is removed in Vista or Windows 7.
  • The New Task (Run) command is removed from Task Manager.
  • Users will be blocked from entering the following into the Internet Explorer Address Bar:
    • A UNC path: \\<server>\<share>
    • Accessing local drives: e.g., C:
    • Accessing local folders: e.g., \temp>

EXAMPLE: Run command (Windows + R)
Name:  Run.jpg
Views: 52560
Size:  25.3 KB
EXAMPLE: Message a User will See when Run is Disabled
Name:  Error.jpg
Views: 52446
Size:  28.4 KB



OPTION ONE
To Enable or Disable "Run" using a REG File Download
1. To Enable Run Command Dialog Box for Only Current User
A) Click/tap on the Download button below to download the file below, and go to step 3 below.
Enable_Run_Command.reg
download
2. To Disable Run Command Dialog Box for Only Current User
A) Click/tap on the Download button below to download the file below, and go to step 3 below.
Disable_Run Command.reg
download
3. Save the .reg file to the desktop.

4. Double click/tap on the downloaded .reg file to merge it.

5. When prompted, click/tap on Run, Yes (UAC-Windows 7/8) or Continue (UAC-Vista), Yes, and OK.

6. When done, you can delete the downloaded .reg file if you like.

7. Log off and log on, or restart the computer to apply.





OPTION TWO
To Enable or Disable "Run" using a BAT File Download
1. To Enable Run Command Dialog Box for Only Current User
A) Click on the Download button below to download the file below, and go to step 3 below.
Enable_Run_Command.bat
download
2. To Disable Run Command Dialog Box for Only Current User
A) Click on the Download button below to download the file below, and go to step 3 below.
Disable_Run Command.bat
download
3. Save the .bat file to the desktop.

4. Right click or press and hold on the downloaded .bat file, and click/tap on Run as administrator.
5. If prompted, click on Run.
NOTE: If you like, you can stop getting the Run prompt by unblocking the downloaded .bat file.

6. Log off and log on, or restart the computer to apply.

7. When finshed, you can delete the downloaded .bat file if you like.



OPTION THREE
To Enable or Disable "Run" using 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 to expand User Configuration, Administrative Templates, and Start Menu and Taskbar. (See screenshot below)
-gpedit-1.jpg
3. In the right pane, right click on Remove Run from Start Menu and click on Edit. (See screenshot above)

4. To Enable Run Command Dialog Box
A) Select (dot) either Not Configured or Disabled, and go to step 6 below. (See screenshot below step 6)
5. To Disable Run Command Dialog Box
A) Select (dot) Enabled, and go to step 6 below. (See screenshot below step 6)
6. Click on OK. (See screenshot below)
-gpedit-2.jpg
7. Close the Local Group Policy Editor window.
That's it,
Shawn







04 Sep 2015   #1
Adonix44

Windows 7 Ultimate x64
 
 

Why any reg edit not works for other users account?
Like i am modifying some registries but they are only showing changes in that user account who done the edit,other users have no effect.
Take example of this above registry trick only, it's showing effect only on single account user and rest users have no effect
Any help so that all users have registery effect??


My System SpecsSystem Spec
04 Sep 2015   #2
Brink

64-bit Windows 10 Pro
 
 

Hello Adonix,

It all depends on the registry edit, and if you are an administrator.

The .reg files in this tutorial do affect all users on the computer, but you must merge them while logged in as an administrator, and restart the computer afterwards to fully apply.

Are you trying to enable or disable Run?

If enable, then perhaps it could be some other issue at hand.
My System SpecsSystem Spec
04 Sep 2015   #3
Adonix44

Windows 7 Ultimate x64
 
 

Yes i am merging as administrator but effect not occurs in other user accounts, i restarts explorer.exe for others so that registry effects can be seen but it not works!
Do each time i have to reboot pc to make effect of registry on all users?
Is there a way so that reg edits can be seen in all users accounts without pc restart?
Help please...
My System SpecsSystem Spec
.

04 Sep 2015   #4
Brink

64-bit Windows 10 Pro
 
 

You would only need to log off and log on or restart the computer to apply the one time. Afterwards, it should be applied to all users.

Are you trying to enable or disable Run?
My System SpecsSystem Spec
04 Sep 2015   #5
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by Brink View Post
You would only need to log off and log on or restart the computer to apply the one time. Afterwards, it should be applied to all users.

Are you trying to enable or disable Run?
I don't see how it could apply to all users. It only writes to HKCU

Enable_Run_Command.bat:
Code:
@ECHO Off
REG delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoRun /f

Disable_Run_Command.bat:
Code:
@ECHO OFF
REG add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoRun /t REG_DWORD /d 1 /f
In my testing, it only impacts the user that was logged on when the batch file was run.

You could run it for each current user and then change some area of the default user reg so that future users are impacted.
My System SpecsSystem Spec
04 Sep 2015   #6
Brink

64-bit Windows 10 Pro
 
 

Hey UsernameIssues,

HKCU and HKLM doesn't matter in this case since it's a group policy in the Policies key. Group policies are applied to all users by default.

HKCU = "User Configuration" in Local Group Policy Editor

HKLM = "Local Computer Policy" in Local Group Policy Editor

Does setting it in Group Policy instead work for you?
My System SpecsSystem Spec
04 Sep 2015   #7
UsernameIssues

W7 Pro SP1 64bit
 
 

Isn't the registry hive for each user kept in that user's profile folder?

There should be no way for a standard user to read (or be impacted by) the reg hive from another user.


Yes, using the Local Group Policy Editor works for all users - because:

"User Configuration" in Local Group Policy Editor writes to both the HKCU
and to \Windows\System32\GroupPolicy\User\Registry.pol
That file is applied to each user at logon if the OS is pro or above.

"Computer Configuration" in Local Group Policy Editor writes to both the HKLM
and to \Windows\System32\GroupPolicy\Machine\Registry.pol
My System SpecsSystem Spec
04 Sep 2015   #8
Brink

64-bit Windows 10 Pro
 
 

The Policies key in HKCU and HKLM gets applied to all users. If manually setting in registry, it usually requires restarting to apply though, while setting it in Group Policy applies it instantly.

I'm not sure why this one is not getting applied to all users though.
My System SpecsSystem Spec
04 Sep 2015   #9
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by Brink View Post
The Policies key in HKCU and HKLM gets applied to all users. If manually setting in registry, it usually requires restarting to apply though, while setting it in Group Policy applies it instantly.

I'm not sure why this one is not getting applied to all users though.
This somewhat old technet document seems to say otherwise:

Quote:
The Policies subkeys in HKCU store policy-related entries that are configured separately for each user. Group Policy adds these entries when you enable (and, for some policies, when you disable) a policy in the User Configuration folder in Group Policy.

The Policies subkeys in HKLM store policy-related entries that apply to all users of the computer. The system adds these entries when you enable (and, for some policies, when you disable) a policy in the Computer Configuration folder in Group Policy.

Many policy-related entries can appear in both HKCU and HKLM. Typically, the entries in HKLM take precedence over the entries in HKCU when both are configured.

The SOFTWARE\Microsoft\Windows\CurrentVersion\Policies subkey stores policy-related entries for Windows 2000 and for Windows NT 4.0 and earlier. The SOFTWARE\Policies subkey is new in Windows 2000. Please note that different versions of Windows support different policies.
Let me know if you find a reg file policy that only writes to HKCU and yet Windows somehow applies it to all users. I would like to study it to see what mechanism is fanning it out. Thanks for your time.
My System SpecsSystem Spec
Comment

 Run Command - Enable or Disable




Tutorial Tools




Similar help and support threads
Windows 7 Tutorial Category
Enable client for Microsoft networks via command line
Does anyone have a solution for enabling client for Microsoft networks via the command line. It's already installed, but the check box next to it is unchecked. I've been doing some reading around the net and haven't come up anything viable. Some have said to use netsh to do it, but I can't...
Network & Sharing
Disable/enable Desktop BG from Command Line
I currently have a Bat file (that I converted to exe called "kill start") set up that disables all my "extra" processes, and fires up a video game (i have one for each game), launches my Voip program of choice, and logs me in etc. That way I only have to hit one hot key and I'm good to go. Another...
Customization
Flip 3D - Enable or Disable
How to Enable or Disable "Flip 3D" in Vista and Windows 7 This will show you how to enable or disable the ability to use Flip 3D (Switch between windows) for all users on the computer in Vista and Windows 7. You will need to be logged in as an administrator to be able to do this tutorial....
Tutorials
Enable and disable hardware command...?
Hi, I recently disabled several hardware items on my laptop (CDROM, PCMCIA, etc.) to save the battery life. My question is, is there a way to setup a "command" to enable and disable these hardware without going to the Control Panel, etc.? Many thanks in advance. Regards,
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:04.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App