quietus24 Posted February 9, 2005 Share Posted February 9, 2005 Hi Everyone, I am looking to replace a Server Name in the registry on a large number of XP machines. I must change ServerName1 to ServerName9 I was thinking of exporting the known registry keys and wondering if I can StringReplace within a text file.... Any ideas/suggestions. Thanks very much Link to comment Share on other sites More sharing options...
SlimShady Posted February 9, 2005 Share Posted February 9, 2005 If you know the exact location of the registry keys, you don't need to export them. Just use RegWrite. You can RegWrite to a remote machine if you have the rights. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 9, 2005 Developers Share Posted February 9, 2005 Hi Everyone, I am looking to replace a Server Name in the registry on a large number of XP machines. I must change ServerName1 to ServerName9I was thinking of exporting the known registry keys and wondering if I can StringReplace within a text file....Any ideas/suggestions. Thanks very much<{POST_SNAPBACK}>looks like you know the registry key... If you need to check the current name first you can do a RegRead() .and update the registry with RegWrite() SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
quietus24 Posted February 9, 2005 Author Share Posted February 9, 2005 (edited) Hmmm, I need to target specfici areas of Reg Keys as well as values..... below is exact extract with server name changed to generic... [HKEY_CURRENT_USER\Printers] "DeviceOld"="\\\\servername1\\printername,winspool,Ne06:" [HKEY_CURRENT_USER\Printers\Connections] [HKEY_CURRENT_USER\Printers\Connections\,,servername1,printername] "Server"="\\\\servername1" "Provider"="win32spl.dll" And dozens more like this. I am trying to switch printserver names by pulling off the tablecloth without disturbing anything else. I suppose Regwrite could do it, but I have to just replace the server name part selectively. Registry Surgery indeed. What do you think Thanks. Edited February 9, 2005 by quietus24 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now