Link to home
Start Free TrialLog in
Avatar of rezzman
rezzmanFlag for Afghanistan

asked on

Create registry key Under HKLM-software-microsoft-windows-currentversion-run

I need to create registry key Under HKLM-software-microsoft-windows-currentversion-run
The key tiltle will by xyz and it should read a file path to execute.  I have to make this change to multiple servers remotely.  Please advise
Avatar of guydemarco
guydemarco
Flag of United States of America image

Copy the below into a notepad text file. Modify as needed, then save. Rename the file extension to .REG and you can auto-import it into any registry.
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"XYZ"="C:\\Program Files\\Your Directory\\YourExecutable.exe"

Open in new window

Avatar of -JerodR
-JerodR

Create the key on a computer using regedit (start > run > regedit).  Right click the key and export it.  Then you can copy the .reg file it creates to the remote computers and execute it.  After the .reg file is executed on the remote machine, the new key will be added to the registry on the remote machine.
A .REG file, by the by, is executable to import into the registry. Make sure you modify that last line to what you need, the rest should work as-is. Don't forget the double slashes on the last line of the code I posted.
you would need some kind of a software that allows you to modify registry of multiple computers from one place. I assume you are using a domain environment. Try using ideal dispatch (http://www.pointdev.com) it should help.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial