Is there a way of copying a specific registry key to a drive on a computer (e.g. a usb drive) so that it can later be restored onto a new PC?
Basically I work with a piece of printing accounting software in my workplace. when the software is installed, it adds a few files to the C: drive, as well as adding a connection string registry key to the system within hkey_local_machine -which provides the credentials for connecting to an sql database (also set up during the installation software).
I get a lot of calls from customers who decide they want to backup the system and its data and migrate it over to a new server - and i want to create an application that does this, and which would involve the following steps:
*Stop IIS and Print Spooler services
*Copy 2 folders from C:\Program Files
*Copy a specific registry key from tree within hkey_local Machine.
Once the software has been initially set up on the other server (takes a few minutes with an .exe), I want the application to replace the files on the C: drive with the backed up files - likewise with the single registry key.
What I'm thinking about is creating the interface in visual basic, and then using scripts to carry out all the procedures, rather than having to do each part manually.
Is it possible to copy the registry keys using script? If so, do you know what kind it would be? ie.e VBscript, Windows scripting, etc.
Any advice greatly appreciated.
Thanks