Run Command - Enable or Disable

Page 1 of 2 12 LastLast
    Run Command - Enable or Disable

    Run Command - Enable or Disable

    How to Enable or Disable "Run" Command Dialog Box in Windows
    Published by
    Designer Media Ltd


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


       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)
    Run Command - Enable or Disable-run.jpg
    EXAMPLE: Message a User will See when Run is Disabled
    Run Command - Enable or Disable-error.jpg



    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
    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
    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
    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
    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)
    Run Command - Enable or Disable-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)
    Run Command - Enable or Disable-gpedit-2.jpg
    7. Close the Local Group Policy Editor window.
    That's it,
    Shawn










  1. Posts : 16
    Windows 7 Ultimate x64
       #1

    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 Computer


  2. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    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 Computer


  3. Posts : 16
    Windows 7 Ultimate x64
       #3

    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 Computer


  4. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    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 Computer


  5. Posts : 10,485
    W7 Pro SP1 64bit
       #5

    Brink said:
    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 Computer


  6. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    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 Computer


  7. Posts : 10,485
    W7 Pro SP1 64bit
       #7

    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 Computer


  8. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #8

    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 Computer


  9. Posts : 10,485
    W7 Pro SP1 64bit
       #9

    Brink said:
    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:

    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 Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 17:49.
Find Us