Solved

***How do I use the Loadstate and Scanstate commands in Windows?***

Posted on 2006-11-29
1
3,654 Views
Last Modified: 2012-08-14
Hi all,

I have heard of the loadstate and scanstate commands in Xp and this seems like a time saving feature and a very useful utility for Network admins. I have little knowledge of windows XP but would like to know how to use this feature also does anyone know of a  good tutorial on the web that can take me through this process.

Cheers.
0
Comment
Question by:blaadom
1 Comment
 
LVL 11

Accepted Solution

by:
theProfessa earned 250 total points
ID: 18038100
This information was found:
http://www.microsoft.com/technet/prodtechnol/winxppro/deploy/usermigr.mspx




ScanState.exe Syntax

This section explains the syntax and usage of ScanState.exe.

scanstate [/c /i input.inf]* [/l scanstate.log]  
 [/v verbosity_level] [/f] [/u] [/x] migration_path  

Table 1 Using ScanState.exe
Flag      Resulting Action

/c
      

Continues past filename_ too_long errors. Log files in Longfile.log.

/i
      

Specifies an INF file containing rules that define which user state data to collect. Multiple INF files can be specified.

/l
      

Specifies a file in which to log errors.

/v
      

Enables verbose output. The syntax is /v # where # is 1 to 7, with 1 being the least verbose, and 7 the most.

/u
      

Specifies that user settings will be migrated. This is a switch for troubleshooting only.

/f
      

Specifies that files will be migrated. This is a switch for troubleshooting only.

/x
      

Specifies that no files or settings should be migrated.

 
      

Note: The migration_path is a path to the location where files should be read/written.

For example:

scanstate \\fileserver\migration\elizabeth /i .\migapp.inf /i .\migsys.inf /I  
.\miguser.inf /i .\sysfiles.inf /i .\files.inf

By default, user settings, system settings, and files are migrated. Use the /u, /f, and /x flags only for troubleshooting. Multiple Migrate Rule INF files can be specified. If you specify more than one, the Sysfiles.inf Migration Rule INF file must be included.

LoadState.exe Syntax

This section explains the syntax and usage of LoadState.exe.

loadstate [/i input.inf]* [/l loadstate.log] [/v #] [/f] [/u] [/x] migration_path  

Table 2 Using LoadState.exe
Flag      Resulting Action

/i
      

Specifies an INF file containing rules to define what state to migrate. Multiple INF files can be specified.

/l
      

Specifies a file in which to log errors.

/v
      

Enables verbose output. The syntax is /v # where # is 1 to 7, with 1 being the least verbose, and 7 the most.

/x
      

Specifies that no files or settings will be migrated. This is a switch for troubleshooting only.

/u
      

Specifies that user settings will be migrated. This is a switch for troubleshooting only.

/f
      

Specifies that files will be migrated. This is a switch for troubleshooting only.

 
      

Note: migration_path is a path to the location from which the files should be read.

For example:

loadstate \\fileserver\migration\elizabeth /i .\miguser.inf  

By default, user settings, system settings, and files are migrated. The /u, /f, and /x flags should only be used for troubleshooting. Multiple migrate rule INF files can be specified.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
networked printer 4 87
Windows print sharing 1 84
Exchange & AD management console 2 119
Transfer configuration between Windows XP installations 4 84
Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question