Solved

Script to add RUN to start menu for multiple machines

Posted on 2014-03-11
4
276 Views
Last Modified: 2014-08-20
I am looking for the command syntax to add to a batch file so that I can automatically add the Run dialogue to the start menu for windows 7. I am tired of having to add it for each and every machine for each and every user....just want to add to a registry key or something to bring it up when a machine is built.  **Can't use group policy**  Don't have access to that at our company and the guys who do have it are too busy to care about the run.
0
Comment
Question by:bmitzel2
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
Santosh Gupta earned 167 total points
ID: 39920885
what is understand, you want the message at login, without GPO. then follow below steps.

    Click Start, click Run, type regedit, and then click OK.
    Locate and then click the following registry key:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system
    In the right pane, double-click legalnoticecaption, and then type the text that you want to appear in the title bar of the message dialog box.
    In the right pane, double-click legalnoticetext, and then type the text that you want to appear in the message dialog box.
    Close Registry Editor.
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39921559
Hi.

Open GPO reference and see what regvalue it is. Then set that value using a batch and reg.exe.
0
 
LVL 14

Assisted Solution

by:Rob Miners
Rob Miners earned 333 total points
ID: 39922168
The command syntax to add to a batch file :

reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Start_ShowRun /t REG_DWORD /d 1 /f

The changes won’t take effect immediately, only after a log off log on is implemented.

You could test this on a new build:

All New Accounts will have the Run command shortcut by default after modifying the Default ntuser.dat file.

This key can be accessed for an offline user by loading the ntuser.dat file. This is achieved by logging on with an Administrative account and using the Load Hive feature in regedt32.

eXample:

Press the WinKey + r type regedt32 and then press Enter. Click OK to UAC.

In the registry editor

Use the mouse, to select "HKEY_USERS" so that it is highlighted

goto the "Registry" File Menu, choose "Load Hive"

Browse to the folder C:\Users\Default\ntuser.dat with the file and type in ntuser.dat and press the Enter key or double click to open the file.

Enter "$tmp" as the name for the key.

Highlight HKEY_USERS\$tmp in the pane on the left.

navigate to SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced.

Right click in the right hand pane and select New DWORD and name it Start_ShowRun, give it a value of 1

Once completed, ensure "$tmp" is highlighted and choose "Unload Hive" from the "Registry Menu".

Note...this will save your changes

Close regedt32.

#ref Manually Editing Profiles

http://technet.microsoft.com/en-us/library/cc722901.aspx
http://www.windows-commandline.com/add-run-command-to-start-menu/



-=eol=-
0
 
LVL 14

Assisted Solution

by:Rob Miners
Rob Miners earned 333 total points
ID: 39938145
Was this not what you were after ?
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question