Batch file or VB script for more automated USMT?

V

Valkan

I have created individual batch files for scanstate and loadstate where I
edit them for each user. I have to manually change the user name, manually
change the file name of the batch files I create for each user, and manually
name the share name and location where each user's data is saved.

Is there a way to make this much easier, such as a batch file or VB script
that simply prompts you for the user name and the site (user name entered at
the prompt then being used to automatically choose the username for scan
state and load for loadstate, as well as create/name a directory based on
user name to store the USMT data. Site name entered would determine from
what location scanstate and load state executables would run and where the
data files would be saved so that it always saves the data to the local site
of the user rather than across a WAN).

Basically I want an interface that is very simple and prompts:

Are you collecting data from the old PC or loading data to the new PC? (A or
B)
Which site? (4 choices)
What is the user name?


The person running the tool should only need to run the tool, enter the
answers to those 3 prompts.
They would run it from the old PC to collect the data, wait for the data to
be saved to the network share, then run it at the new computer to load the
data.
It would great if it at least show a message saying loadstate or scanstate
is in progress and then show when completed sucessfully.

I doubt I could be the first person to think of this, so maybe something
like this has already beeen created or else can someone help with this?
 
G

Guest

I use Environment Variable to fill in user name and Domain for the scanstate
and loadstate, it would look like this /user:%USERDOMAIN%\%USERNAME%
works great, as for scan or load just have two scripts.
same thing for user data, you can use %HOMEDATA%

If you go to a command prompt and type SET you can see and the Environment
Variable you can use.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top