View Full Version : Copy/Save registry keys
dastraub
03-27-2001, 10:53 PM
How would I create a script file to grab registry keys while logged in one account, save those to a file and then have them installed via a script when logged into another account?
RWSchlatter
03-28-2001, 06:17 PM
if you do not have the current WSH help file, download it from Microsofts Scripting site at :
<a target="_blank" href=http://msdn.microsoft.com/scripting/>http://msdn.microsoft.com/scripting/</a>
It will answer all your questions !
Look out for the Write method for the StdOut object to save your registry information, and the Read method of the StdIn object to retrieve the saved information.
And registry access is defined with the RegRead / RegWrite methods of the WshShell object.
You will need to switch the login between the two users from copying and inserting.
______________
Regards - Richard
RWSchlatter
05-04-2001, 12:57 AM
J mentioned in my previous answer, that you would need to switch between accounts. If you are using Win2K (rather than NT) check following article for Secondary Logon which may speed up things.
<a target="_blank" href=http://www.microsoft.com/technet/win2000/seclogon.asp?a=frame>http://www.microsoft.com/technet/win2000/seclogon.asp?a=frame</a>
______________
Regards - Richard
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.