Guidance for Using the W2KMigUser Script to Migrate Users' Files from Windows 2000 to Windows 7
Abstract
Introduction ............................................................................................. 3
Conclusion ............................................................................................. 12
Note W2KMigUser does not back up redirected folders. Additionally, it does not back up folders that were
moved by editing the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders registry subkey. W2KMigUser only backs up folders that reside in the user’s local user profile.
1. On each computer running Windows 2000, run W2KMigUser to back up users’ files to a network
share or removable media. Because MDT 2010 does not support Windows 2000, you must run
W2KMigUser manually or by some other method, ensuring that the script runs only once on each
computer. Preferably, you will run this script in Windows 2000 just prior to beginning an offline Lite
Touch Installation (LTI) process by starting the computer with the MDT 2010 boot media.
2. Restore users’ files from the network share or removable media after installing Windows 7. Although
you can run W2KMigUser manually or by another method to restore users’ files, Microsoft designed
this script to restore users’ files automatically during the State Restore Phase of a MDT 2010 task
sequence. W2KMigUser even creates users’ profile folders and restores their group memberships.
The remainder of this white paper describes how to prepare and use W2KMigUser. It describes the
prerequisites you must install on computers running Windows 2000, how to configure the scripts by
customizing W2KMigUser.xml, and how to plug W2KMigUser into a MDT 2010 task sequence.
For more information about support for Windows 2000, see the Windows 2000 End-of-Support Solution
Center. Additionally, you can learn more about Windows 7 deployment at the Microsoft Deployment
TechCenter.
W2KMigUser.wsf This file is the main script. It provides command-line options for backing up and
restoring users’ files during a Windows 2000–to–Windows 7 migration. The script file
W2KMigUser.wsf contains two jobs that you specify by using the cscript.exe command-line option
//Job:Name. The Backup job backs up users’ files, and the Restore job restores users’ files.
W2KMigUser.xml This Extensible Markup Language (XML) file contains settings that control
W2KMigUser.wsf. For example, you can define the file types to include and exclude during migration.
When you download files such as scripts from the Internet, Microsoft Office Outlook® and Windows Internet
Explorer® block them to prevent you from accidentally running malicious content. After downloading this white
paper and the companion scripts, make sure the scripts are not blocked. For each script file, complete the
following steps:
2. On the General tab of the file’s Properties dialog box (see Figure 1), click Unblock, and then click
OK. If you do not see the Unblock button, the script file is not blocked.
Before using W2KMigUser, you must prepare an environment in which the scripts can run. This includes
making the scripts accessible over the network, creating a backup store, and customizing its settings. The
following sections describe these steps in more detail.
You can also store the W2KMigUser script files on removable media, and then run the scripts manually to
back up and restore users’ files before and after installing Windows 7. In this scenario, you avoid creating a
backup store on the network by creating it locally.
1. Determine which accounts or groups should have access to the backup store:
If you want to use the same user account or groups to access the backup store that
MDT 2010 uses to access the deployment share, you do not have to create a new account.
Instead, use W2KMigUser to back up users’ files by specifying this account on its command
line or by using the credentials of the currently logged on user.
2. Create and share a folder for the backup store. Give the accounts or groups containing the accounts
that require access to the backup store Write permission to the root folder. Then, give CREATOR
OWNER full control of subfolders and files.
Warning W2KMigUser does not secure or encrypt the backup store. The backup store is only secured by the
file permissions that you configure for it. Remove data from the backup store after using it to prevent unauthorized
access to users’ files.
You can also use removable media for the backup store. In this scenario, you run W2KMigUser manually
before installing Windows 7 to back up users’ files to the removable media. After installing Windows 7, you
run W2KMigUser again in order to restore users’ files from the removable media. In both cases, you must
specify the path of the removable media on the command line, because the drive letter assigned to the
removable media might change from computer to computer.
Note The primary purpose of W2KMigUser is to back up and restore users’ files during a migration from
Windows 2000 to Windows 7. However, W2KMigUser provides a very limited ability to back up and restore
individual registry settings. For more information, see W2KMigUser.xml.
1. If necessary, create a task sequence specifically for deploying Windows 7 to computers running
Windows 2000 and using W2KMigUser. You can copy an existing task sequence or create a new
one. Do not use the same task sequence that you use for other scenarios, because you will make
changes to the task sequence that are specific to Windows 2000.
2. Configure the task sequence (or properties) so that computers join the domain automatically by
configuring the JoinDomain property.
3. Add a task to the end of the task sequence that runs W2KMigUser (see Figure 2). For example:
To restore users’ files and settings using the same credentials that the task sequence is
using to access network resources, use cscript.exe %SCRIPTROOT%\W2KMigUser.wsf
//Job:Restore.
To restore users’ files and settings using a dedicated account, use cscript.exe
%SCRIPTROOT%\W2KMigUser.wsf //Job:Restore /User:DOMAIN\User
/Password:Password, where DOMAIN\User and Password are the credentials of the
account you want to use to connect to the backup store.
Note When you start the Windows Deployment Wizard, you must provide credentials that can
access the deployment share. If you provide the same credentials to the wizard that you use to back
up users’ files with W2KMigUser, you do not have to specify credentials when you run W2KMigUser
in the task sequence. Otherwise, you must provide credentials to W2KMigUser in the task sequence
by using the /User and /Password command-line options.
W2KMigUser supports a number of command-line options. For example, you can specify a path to the backup
store on the command line. The file W2KMigUser.wsf documents these command-line options. Additionally,
you can type the following commands to display help:
Before running W2KMigUser, log on to the computer by using credentials that have access to all of the user
profile folders on the computer. That is, you must log on to the computer as a local Administrator.
To back up users’ files, run the Restore job in W2KMigUser.wsf. For example:
To back up users’ files using the currently logged on user’s credentials, run cscript.exe
W2KMigUser.wsf //Job:Backup.
W2KMigUser creates in the backup store a folder for the computer. For example, if the backup store is \\DC-
01\Miguser and the computer’s name is PC-01, W2KMigUser creates the folder \\DC-01\Miguser\PC-01.
Within that folder, W2KMigUser creates a log file and an XML file that describes the data it captured and
creates a folder for each user profile folder it backed up from the computer.
Note You must install Windows 7 on the computer using the same computer name. W2KMigUser uses the
computer name as the key. If you want to change the computer’s name in Windows 7, rename the computer’s
folder in the migration folder to match the new computer name. For example, if the computer’s name was PC-01
when it was running Windows 2000 but you want to rename the computer IMA-PC-01 in Window 7, rename the
folder from \\DC-01\Miguser\PC-01 to \\DC-01\Miguser\IMA-PC-01.
When you start the Windows Deployment Wizard, provide credentials that can access the deployment share.
If you provide the same credentials to the wizard that you used to back up users’ files with W2KMigUser, you
do not have to specify credentials when you run W2KMigUser in the task sequence. Otherwise, you must
provide credentials to W2KMigUser in the task sequence by using the /User and /Password command-line
options.
When W2KMigUser runs, it creates any local accounts and restores group memberships that are in the
backup store; it then creates user profile folders and restores users’ files from the backup store. For domain-
joined computers and domain accounts, the process is seamless. For local user accounts, however, you must
reset each local user account’s password, because W2KMigUser assigns each local user account a random
password. You can reset users’ accounts by using Local Users and Groups or another password-reset tool.
2. On the computer running Windows 2000, run the W2KMigUser Backup job. Use the /Store
command-line option to specify the path of the removable media as the backup store.
3. Install Windows 7.
4. When Windows 7 installation is complete, manually run the W2KMigUser Restore job. Use the /Store
command-line option to specify the path of the removable media as the backup store.