Solved

Script to add RUN to start menu for multiple machines

Posted on 2014-03-11
4
274 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 53

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
factory reset 9 65
forgot pst password 2 41
Windows 7 Share with concurrent edits(Excel) 3 33
Lots of browser tabs open affecting system performance - bad habit 14 56
This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
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...
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

867 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now