User Profile Wizard 3.0 User Guide
User Profile Wizard 3.0 User Guide
User Profile Wizard 3.0 User Guide
User Guide
ForensiT Limited, 75 Riverside III, Sir Thomas Longley Road, Rochester, Kent, ME2 4BH
England.
Tel: US 1-877-224-1721 (Toll Free) Intl. +44 (0) 845 838 7122 Fax: +44 (0) 870 751 7118
Contents
I N T R OD U CI NG
U S E R
I N S T AL L A TI ON
P RO F IL E
W I Z ARD
Installing
Licensing
Deployment Files
O V E R V I EW 9
G E T T I NG
S T A R T E D
1 0
Step 1 - Welcome
11
11
13
14
15
17
18
19
20
21
Congratulations
22
23
M I G R A TI N G
U S E R
P RO FI L E S
W I T H
US E R
P R O FI L E
W I Z A RD
Welcome
26
Select Computer
26
29
31
Migrating Profile
33
Migrating Profile
33
Congratulations!
34
A U T O M A TI NG
E N T E R P RI S E
M I GR A T IO N S
Introduction
35
36
Rename workstations
37
38
39
39
40
Script Options
41
42
Next Steps
43
45
Fine Tuning
47
48
48
P R O FW I Z . CO NF IG
P U S H
R E F ER E N C E
M IG R A T IO N S
A N D
TH E
4 9
C O M MAN D
LI N E
CO N SO L E
Push or Pull?
53
54
55
C O M M A ND
LI N E
R EF E R E N C E
F R E QU E N TL Y
A SK E D
56
QU E S T I ON S
62
What's a profile?
62
62
62
Why not just copy the data from the old profile?
63
63
What version of Windows does the User Profile Wizard run on?
63
63
Can I use the User Profile Wizard with Fast User Switching?
63
64
64
What are the security implications of running the User Profile Wizard?
64
64
64
65
65
T R O U BL E S HO O TI N G
Windows creates a temporary profile
66
67
E N D
U S E R
L IC E N S E
AG R E E M E N T 6 8
I N T R O D U C T I O N
I N S T A L L A T I O N
Installation
Installing User Profile Wizard
You should run the User Profile Wizard setup program on a single Administrator
machine. The setup program will install the User Profile Wizard application files and
documentation, together with the User Profile Wizard Deployment Kit. You can then
copy and distribute the User Profile Wizard application files.
The only files you need to run User Profile Wizard are Profwiz.exe and
Profwiz.config. You do NOT need to run the setup program on all the
machines you want to migrate.
Installing
To install User Profile Wizard run the setup program.
The setup program can installs both the User Profile Wizard and the User Profile
Wizard Deployment Kit.
The ForensiT User Profile Wizard Deployment Kit is a .NET application and
requires the Microsoft .NET Framework Version 1.1 (or above) to be installed
on your computer.
If the .NET Framework is not installed on your computer you will see an Application
Error when you try to run the software.
The .NET Framework can be downloaded free of charge from Microsoft at
http://www.microsoft.com/downloads/details.aspx?FamilyID=262d25e3-f589-48428157-034d1e7cf3a3&displaylang=en
The User Profile Wizard User Guide, installed with User Profile Wizard, is a PDF file. If
you need PDF reader software, you can download it free of charge from the Adobe
website at http://www.adobe.com/products/acrobat/readstep2.html
I N S T A L L A T I O N
Licensing
When you purchase the User Profile Wizard you will be sent a link by email to
download a Profwiz.config file. This file contains your licensing information.
To license User Profile Wizard you simply need to copy the license file into the same
folder as the User Profile Wizard executable file, Profwiz.exe.
To copy the license file, click the Start button, then choose All Programs, then
ForensiT and ForensiT User Profile Wizard 3.0. Click Deployment Files to
open the Deployment Files folder.
Copy your license config file into the folder.
I N S T A L L A T I O N
Deployment Files
To run the User Profile Wizard on another machine you just need to copy the
Profwiz.exe and Profwiz.config files. No other files are required.
The Profwiz.exe and Profwiz.config files can be copied to any convenient location,
such as a USB memory flash drive (memory stick or pen drive), a network share, a CD
or a floppy disk .
The Deployment Files folder. This folder containers the files needed to
migrate a workstation to a new domain.
Uninstall User Profile Wizard 3.0
O V E R V I E W
Overview
User Profile Wizard is designed to make migrating workstations to a new domain as
easy as possible. Heres an a high-level overview of the process:
1. Save your domain migration settings to Profwiz.config. To save your domain
migration settings run the Deployment Kit. See the Getting Started chapter in this
guide
2. Generate a migration script. If you want to automate workstation migrations,
generate a script, again using the Deployment Kit. See Automating Enterprise
Migrations.
3. Test the migration process.
4. Deploy the migration files. Copy the migration files from the Deployment Files
folder to a network share. Modify your users logon scripts to call the migration script,
or create a Group Policy Object to call the migration script.
4. Test the deployed solution.
5. Migrate machines.
If you just want to migrate workstations interactively see Migrating User Profiles with
User Profile Wizard
If you are looking to push migrations from a single administrator machine see Push
migrations and the Command Line Console
G E T T I N G
S T A R T E D
Getting Started
Using the Deployment Kit to save your domain migration settings
The settings User Profile Wizard needs to migrate workstations and profiles are saved
in the profwiz.config file.
Profwiz.config is a standard xml file. You can edit it in notepad or any xml editor of
your choice. However, the easiest way to gather the settings that User Profile Wizard
needs is to run the User Profile Wizard Deployment Kit.
The User Profile Wizard Deployment Kit if available from the Start menu: Start->All
Programs->ForensiT->User Profile Wizard 3.0->User Profile Wizard Deployment
Kit.
You dont have to use the Deployment Kit to be able to use User Profile Wizard, but if
you dont save your settings to the Profwiz.config file you will have to enter them every
time you want to migrate a machine.
In this section we will run through the basic settings needed to get User Profile Wizard
up and running. We will return to the more advanced settings in Creating Enterprise
Migration Scripts later in this user guide.
10
G E T T I N G
S T A R T E D
Step 1 - Welcome
When you start the User Profile Wizard Deployment Kit the first thing you see is the
Welcome page. Click Next to continue.
Step 2 also gives you the option to create a migration script. For details on this please
see the Creating Enterprise Migration Scripts later in this guide. For now, we will
uncheck this option. Click Next to continue.
11
G E T T I N G
S T A R T E D
You will probably already have the profwiz.config file you downloaded from the
ForensiT website in the Deployment Files folder. (See the Installation section
earlier in this guide.) In this case the Deployment Kit warns you that the original file
will be renamed. Click Ok.
Old profwiz.config files are renamed Profwiz (1).config, Profwiz (2).config, Profwiz
(3).config etc
12
G E T T I N G
S T A R T E D
13
G E T T I N G
S T A R T E D
14
G E T T I N G
S T A R T E D
lets you specify where in your Active Directory tree you want the
workstation object to be created. To browse the Active Directory tree click Browse
You can then select the container of your choice. (See below.)
Enter AdsPath
Use lookup file to get new computer names lets you rename the workstation
when it
is joined to the domain. We will cover this in Creating Enterprise Migration Scripts
later in this guide.
Click Next to continue.
15
G E T T I N G
S T A R T E D
16
G E T T I N G
S T A R T E D
At the bottom of the page you can choose whether to migrate a single profile all the
profiles on the workstation.
you cannot migrate all profiles if you are running User Profile Wizard in GUI
mode.
Note
17
G E T T I N G
S T A R T E D
18
G E T T I N G
S T A R T E D
19
G E T T I N G
S T A R T E D
20
G E T T I N G
S T A R T E D
Step10 lets you specify the additional Follow on code you want to run. Again, we
will return to this in Creating Enterprise Migration Scripts later in this guide
Click Next to continue.
21
G E T T I N G
S T A R T E D
Congratulations
Thats it! When you click Next at Step 10, the Deployment Kit tells you it is ready to
write the configuration file.
Click Yes.
22
G E T T I N G
S T A R T E D
23
G E T T I N G
S T A R T E D
We will go through each of the config file elements later, but hopefully you can
recognize the information weve entered: the <Domain> element holds the name of
the new domain entered at Step 3; the <AdsPath> element specifies the Active
Directory container where the workstation object will be created, this was selected in
Step 5; the <DomainAdmin> and <DomainPwd> elements hold the new domain
credentials with the password now encrypted that were entered at Step 4, and so
on.
Now that we have saved the settings, it is time to run User Profile Wizard.
24
M I G R A T I N G
U S E R
P R O F I L E S
25
M I G R A T I N G
U S E R
P R O F I L E S
Welcome
When you start User Profile Wizard the first thing you see is the Welcome page.
Click Next to continue.
Select Computer
The first option you have is to choose the workstation you want to migrate. This can
be the Local Computer the computer User Profile Wizard is running on, or another
computer on the network.
You can enter the name of a computer directly in the edit box, or you can click
Browse to find a machine on the network.
26
M I G R A T I N G
U S E R
P R O F I L E S
If you have saved Administrator credentials for the workstation in the Profwiz.config
file, User Profile Wizard will use the credentials to connect to the workstation. If you
havent done this, or if the credentials in the Profwiz.config file are invalid, you will be
prompted:
27
M I G R A T I N G
U S E R
P R O F I L E S
28
M I G R A T I N G
U S E R
P R O F I L E S
Enter the domain of the user account that will be given access to the existing profile.
If there is a <Domain> setting in the Profwiz.config file, the domain name will appear
in the "Enter the domain" combo box. If your machine is already joined to a domain,
that domain name will also appear in the combo box.
If the "Enter the domain" box is blank, and you are joining your machine to a new
domain, type the new domain name.
You can also choose the local machine name by clicking on the down arrow. This will
allow you to share a profile with a local user account if you want to.
29
M I G R A T I N G
U S E R
P R O F I L E S
Join Domain
If your machine is not already joined to a domain, or if you enter a new domain name,
the "Join Domain" check box is checked by default. Remove the tick if you do not
want the machine to be joined to the domain you have specified.
If the machine is already joined to the domain the "Join Domain" check box is filled in.
To force user Profile Wizard to join the machine to the domain again, click the check
box to enter a tick.
Enter the account name
In the "Enter the account name" text box enter the user's new account name. This can
be a plain NT account name like "jsmith" or an account name in UPN (User Principle
Name) format, for example, jsmith@olympic.forensit.com.
Default Logon
By default the Wizard will set the account you specify to be the default logon on the
machine. Remove the tick in the "Set as default logon" text box if you do not want the
default logon to change.
30
M I G R A T I N G
U S E R
P R O F I L E S
User Profile Wizard lists the profiles assigned to each user account. You just need to
select the account name of the user whose profile you want to share.
Delete Account
If the profile you have selected is currently assigned to a local account, you can tell the
wizard to delete the account after the migration is completed by checking the Delete
Account checkbox.
31
M I G R A T I N G
U S E R
P R O F I L E S
Disable Account
If the profile you have selected is currently assigned to a local account, you can tell the
wizard to disable the account after the migration is completed by checking the
Disable Account checkbox.
Unassigned Profiles
User Profile Wizard lists the currently assigned profile: that is, the profile that each user
is currently using. Note that this is not necessarily the user's original profile.
For example, say that Jane leaves your organization and Alice takes over her position.
It is decided that it makes sense to run User Profile Wizard to assign Janes profile to
Alice. Alice, however, has already logged onto Janes machine and already has a profile.
What happens to Alice's profile? The answer is nothing. The profile stays on the
machine, but it is not used by anyone, it is "unassigned." To list these unassigned
profiles, tick the "Show Unassigned Profiles" box. The first time you do this, you will
get a warning. This is because profiles sometimes become corrupted so that Windows
cannot read them. When this happens Windows creates a new profile for a user. If you
look in the profiles directory, usually "Documents and Settings", you will sometimes
see profile folders with names like USER.DOMAIN. These are profiles Windows has
created because it cannot read the user's original profile. It is obviously not a good idea
to use a corrupted profile, and the User Profile Wizard warns you of the possibility.
The User Profile Wizard lists unassigned profiles with the unknown user icon. It will
also list the profiles for user accounts that have been deleted from the machine. In this
case, the actual user name is not available and you will only see the user account SID
(Security Identifier.)
The User Profile Wizard will always try to resolve the domain and account associated
with a particular profile. However, this is not always possible - for example, if a domain
is no longer available on the network. In these circumstances you should be able to
work out the profile you want to share by looking at the profile path.
32
M I G R A T I N G
U S E R
P R O F I L E S
Migrating Profile
As soon as you click Next the configuration process begins. User Profile Wizard will
update the progress window at each stage.
If you are joining your machine to the domain and you havent saved domain
credentials to the Profwiz.config file - you will be prompted for a username and
password with the necessary permissions.
When configuration is complete click Next.
33
M I G R A T I N G
U S E R
P R O F I L E S
Congratulations!
You're done. If there were any problems, you can click Back and check the progress
window for errors. Click Finish to close the Wizard.
If the Wizard has joined a machine to the domain you specified you will be prompted
to reboot.
If someone is logged onto the remote computer and you click Yes they will not be
able to stop their machine rebooting.
34
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
Automating Enterprise
Migrations
In this chapter we discuss automating enterprise migrations using scripting, and
more advanced options for migrating workstations and profiles
Introduction
In the previous chapter we saw how easy it was to migrate a workstation using User
Profile Wizard in GUI mode. However, if you need to migrate a large number of
machines hundreds, thousands, or tens of thousands it is not practical to run the
Wizard manually to migrate every workstation.
User Profile Wizard 3.0 has been designed from the ground up to automate
workstation migrations. In this chapter we see how easily this can be done. We will also
return to the some of the more advanced settings we didnt cover in the Getting
Started chapter:
Rename workstations
35
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
By default the Deployment Kit picks up the Profwiz.config file in the Deployment
Files folder, so we just need to choose Edit an existing config file and click next.
The Deployment Kit reads the settings we have already configured so we just need to
click next at Step 3 and Step 4.
36
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
Rename workstations
User Profile Wizard can rename workstations when they are joined to a domain. To do
this the Wizard needs to be able to map the old computer name to the new computer
name. It does this by looking up the old computer name in a look-up file.
A look-up file is just a plain comma-separated text file. Computer names are listed in a
look-up file as follows:
Computer1,New_ Computer Name1
Computer 2, New_ Computer Name2
We can specify the look-up file at Step 5 when running the Deployment Kit.
The location of the lookup file is relative to the machine where User Profile Wizard is
running. So, if you were migrating a remote machine the lookup file could be on your
hard drive.
In our example, however, we want to be able to run User Profile Wizard from a script.
In this case we need to put the look-up file is a location where everyone has access, so
we are putting in on a network share on the old domain.
37
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
Generally, you should always use a UNC path to specify a network share, not a
mapped drive like P:\Share. The reason for this is that if User Profile Wizard is
running using Administrator credentials, the drive will not be mapped for the
Administrator user account.
Note
38
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
39
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
User Profile Wizard can rename the profile folder for us when the profile is migrated.
To set this option using the Deployment Kit we just need to check the Rename
Profile Folder check box at Step 7.
Care should be taken when choosing to rename profile folders. Some legacy
applications save the path to the profile and may no longer work if the profile
folder name is changed. You should always test renaming profiles in your
environment before migrating your users machines with this option.
40
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
Script Options
Because we said we wanted to create a migration script back in Step 2 (see above) the
Deployment Kit offers us some additional options at Step 9.
Here we can tell the Deployment Kit the name of the script we want to create. By
default the script is created in the Deployment Files folder.
In the example above, we have set the Reboot Setting to Reboot without
prompting. This means that the workstations that are migrated to the new domain
will reboot automatically after the migration without prompting the user. You can also
choose Prompt for Reboot and Do not reboot.
We have also changed the Log File path. A log file will be created on the network
share instead of on the local machine.
41
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
When we click next we are asked to confirm that we want to create the migration
script.
42
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
Next Steps
When the changes have been written to the Profwiz.config file and the script file has
been created, the Deployment Kit offers us three options.
Open Deployment Folder does just that, and gives you access to
Note: the executable file replaces the script: you do not have to deploy both!
The Deployment Kit can turn any Windows script into an executable. All you need to
do is drag and drop the file onto the Deployment Kit. This is useful if you have tested
the script with debugging messages enabled (which is recommended) and now want to
disable the debugging messages and create the final deployment file: you just need to
edit the script and then drag and drop it onto the Deployment Kit.
43
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
If you are running your migration from a network share (see Step 8) the
Copy Files button will be shown. Click this button to have the Deployment Kit copy
the necessary migration files to the network share.
Copy Files
44
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
45
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
Perhaps the most important setting we have changed is the <All> element the one
that tells User Profile Wizard to migrate all profiles when migrating a workstation.
If you double-click on Profwiz.exe now or run User Profile Wizard from the Start
menu - you no longer get the Wizard GUI. This is because you cannot migrate all
profiles on a machine using the GUI, so setting <All> to True forces the Wizard to
run in command-line (CLI) mode.
As a fail-safe to stop you accidently migrating your Administrator machine, the Wizard
will warn you if you do try and run it in GUI mode.
You will not see this warning if you run the Wizard from a script, or from the
command line, or if you are migrating a remote machine. You will also suppress this
prompt if you explicitly tell the Wizard not to run in GUI mode by setting the
Profwiz.config element to True:
<NoGUI>True</NoGUI>
46
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
Fine Tuning
There are a couple of tweaks that we can make to the Profwiz.config file to fine-tune
the migration process.
We have told User Profile Wizard to migrate all the user account profiles on the
workstation. However, there may be some standard accounts that we do not want to
migrate; for example, the Administrator account. To have User Profile Wizard exclude
certain user accounts from the migration we just have to add the account names to the
<Exclude> element in the Profwiz.config file. Multiple accounts are separated by
commas:
<Exclude>ASPNET,Administrator</Exclude>
47
A U T O M A T I N G
E N T E R P R I S E
M I G R A T I O N S
48
P R O F W I Z . C O N F I G
R E F E R E N C E
Profwiz.config Reference
This Chapter details the settings in the Profwiz.config file
<!-- ForensiT User Profile Wizard 3.0 run options -->
<!-- Note: options set here are overridden by parameters passed
on the command line -->
<Domain></Domain>
The AdsPath of the Active Directory container where the computer account will be
created. If this is blank the computer account will be created in the default
Computers container.
<ForceJoin>False</ForceJoin>
Force the machine to join <Domain> even if it is already joined to a domain of the
same name.
<NoJoin>False</NoJoin>
Do not set the new domain account as the default workstation logon
<Delete>False</Delete>
The name of an account with the necessary permissions to add the machine to
<Domain>
<DomainPwd></DomainPwd>
The <DomainAdmin> account password, either in plain text or encrypted by a <Key>.
The name of a local administrator account. User Profile Wizard must be run with
Administrator privileges.
49
P R O F W I Z . C O N F I G
R E F E R E N C E
<LocalPwd></LocalPwd>
The <LocalAdmin> account password, either in plain text or encrypted by a <Key>.
Run User Profile Wizard but do not migrate any profiles. You can use this option just
to join a machine to a domain, or just to run a follow-on script.
<NoReboot>False</NoReboot>
Remove users local administrator rights when the machine joins the domain
<MachineLookupFile></MachineLookupFile>
Path to a look up file to map old computer names to new computer names.
A look-up file is just a plain comma-separated text file. Computer names are listed in a
look-up file as follows:
Computer1,New_ Computer Name1
Computer 2, New_ Computer Name2
<Log></Log>
Path to the log file where User Profile Wizard will write the output from the migration
process.
<RunAs></RunAs>
The path of a script or executable file to run after the migration using the
<LocalAdmin> credentials.
<Hash></Hash>
The security hash of the script or executable file specified by <RunAs>. This
automatically generated by the Deployment Kit. To generate a hash manually type
ProfWiz /KEY at the command line without any other parameters.
50
P R O F W I Z . C O N F I G
R E F E R E N C E
The name of the old domain. User Profile Wizard will migrate account profiles from
this domain. If <OldDomain> is blank, User Profile Wizard will migrate local account
profiles.
<UserLookupFile></UserLookupFile>
Path to a look up file to map old user account names to new user account names.
<Exclude>ASPNET,Administrator</Exclude>
A list of user account names whose profiles will not be migrated to the new domain. .
<!-- Advanced Settings -->
<Persist>False</Persist>
Do not remove the User Profile Wizard Migration service when the migration is
complete.
<NoGUI>False</NoGUI>
Share the user profile so that it can be used by both the users old account and their
new domain account.
User Profile Wizard does not share profiles by default. The Wizard is primarily a
migration tool; this means that it will configure a users existing profile so that it will be
used by their new account. The users old account will no longer use the profile. If you
want the original account to continue to use the profile you can set <ShareProfile>
to True. Before doing this, however, you may want to refer to Windows creates a
temporary profile in the Troubleshooting section below.
If you run User Profile Wizard in GUI mode with <ShareProfile> set to True
the Share Profile checkbox appears on the Select a User Profile page.
Note that if you do use <ShareProfile> there will be two entries in the machine
profile list (one for the new user account and one for the original user account) both
pointing to the same profile. Sometimes, this can be confusing. For example, if
someone goes back and deletes the profile for the original user, the profile for the new
user will be deleted as well: it is the same profile.
51
P R O F W I Z . C O N F I G
R E F E R E N C E
<RenameProfileFolder>False</RenameProfileFolder>
Specifies which protocol User Profile Wizard should use to join the workstation to the
domain. Valid values are NetBIOS and LDAP. The default is NetBIOS.
52
F R E Q U E N T L Y
A S K E D
Q U E S T I O N S
Push or Pull?
User Profile Wizard 3.0 gives you the option to push migrations to remote
workstations from a central administrator or console machine which is very cool.
But is a push migration a better solution than a pull migration, which is where a
workstation initiates a migration by running a migration script?
Overall pull migrations offer better scalability. Generally, it is more efficient for a
machine to initiate the migration itself. Using this methodology User Profile Wizard
has proved to be extremely effective over hundreds of thousands of migrations.
Using scripting is also very flexible. You can customize a script to handle difficult or
unusual migration scenarios in ways that cannot be achieved with a push migration.
Push migrations are obviously dependent on the workstation that is to be migrated
being on the network at the time you want to migrate it. Additionally, there is probably
greater administrator oversight required even if the push migration is automated.
Sometimes, however, you do not have any choice. If your organization does not have
an existing domain, or an existing Novell or Samba network, it will not be possible to
launch a pull migration from a logon script. If you dont have access to some form of
Electronic Distribution Software (ESD) like Marimba to launch the migration, you
probably will be looking for a push solution that doesnt involve you visiting every
desk.
53
F R E Q U E N T L Y
A S K E D
Q U E S T I O N S
54
F R E Q U E N T L Y
A S K E D
Q U E S T I O N S
When we do this, all the other migration settings are still read from the Profwiz.config
file.
All the command line parameters are listed in the Command Line Reference chapter
later in this guide.
55
C O M M A N D
L I N E
R E F E R E N C E
56
C O M MA N D
L I N E
R E F E R E N C E
The name of the domain of the user account that will be given access to a profile.
If you do not specify a domain name, User Profile Wizard will look for ACCOUNT
on the local machine.
/RENAME computername (Optional)
/ACCOUNT accountname
The name of the account that will be given access to an existing profile.
/LOCALACCOUNT localaccountname (Optional)
57
C O M MA N D
L I N E
R E F E R E N C E
The name of an account with the necessary permissions to add the machine to the
DOMAIN.
/DOMAINPWD password (Optional)
58
C O M MA N D
L I N E
R E F E R E N C E
enter a key word that User Profile Wizard will use to encrypt and decrypt the
password this should be completely unrelated to the password to stop anyone
guessing what the password might be. Click Next
The encrypted password is generated in the encrypted password window on the next
page, and a secure hash of any script or file you want to run is generated in the file
hash window.
If you are encrypting both a DOMAINADMIN and a LOCALADMIN password,
you must use the same key.
/JOIN (Optional)
Join the local machine to the domain even if the profile migration fails.
/NOJOIN (Optional)
59
C O M MA N D
L I N E
R E F E R E N C E
/NOMIGRATE (Optional)
If you are performing an enterprise-wide domain migration, you may have some
machines that you want to join to your new domain which dont have any profiles you
want to migrate. By using the /NOMIGRATE switch you can script the User Profile
Wizard to migrate these machines without needing to call on any other tools.
/NODEFAULT (Optional)
60
C O M MA N D
L I N E
R E F E R E N C E
Just passing a script or executable to the User Profile Wizard to run is not secure.
Scripts might be edited, or executable files replaced by a malicious user wishing to run
their own code on a workstation. To stop this happening, you should use the /HASH
parameter to pass a security hash of the file you want to run.
The security hash guarantees that only the file you specify gets run - unchanged. If a
script is altered at all even by a single character the User Profile Wizard will not run
it.
To generate a security hash, run the User Profile Wizard with just the /KEY parameter
and specify the script or executable you want to run. (See above.)
61
C O M M A N D
L I N E
R E F E R E N C E
Frequently Asked
Questions
This chapter gives answers some commonly asked questions..
What's a profile?
A profile is where Windows keeps all your personal data and settings. Your profile is
where your "My Documents", "My Pictures" and "My Music" files are stored, and
where your Internet favorites and cookies are kept. Windows keeps track of your
personal settings in your profile, like your desktop wallpaper and the lists of documents
you've recently opened. Most of the changes you make to personalize your applications
are also kept in your profile, as well as files like dictionaries and playlists.
62
C O M MA N D
L I N E
R E F E R E N C E
Why not just copy the data from the old profile?
Well, you could. But that is going to be a time consuming, labor intensive, not say
costly operation. What data do you copy? Even if you copy all your files, what about
the configuration information that Windows stores in the registry? Using the User
Profile Wizard is just much easier and much less disruptive.
63
C O M MA N D
L I N E
R E F E R E N C E
you will get an error. In this situation Windows will create a temporary profile for the
account.
64
C O M MA N D
L I N E
R E F E R E N C E
will add your domain account to the "Power Users" group. If you are sharing profiles
between local accounts, group membership is not effected.
65
T R O U B L E S H O O T I N G
Troubleshooting
This chapter discusses some problems occasionally seen when running User Profile
Wizard.
If two user accounts are sharing a profile and you logoff from one account and logon
again using the second account, Windows reports that the user profile cannot be
loaded and creates a temporary profile.
RESOLUTION
The usual cause of this problem is when an application or service that is installed on
the machine does not properly release resources, such as registry resources, when the
user logs off. When this occurs the user's profile cannot be unloaded. In these
circumstances, if a user is logged on with, say, their local computer account, and they
log off and attempt to logon with their domain account which shares their local
account profile, Windows is unable to load the profile because it is already in use. The
only thing that Windows can then do is load a temporary profile.
This is a fairly well known problem. There is a Microsoft article here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;837115
User Profile Wizard is primarily a migration tool: it allows an existing profile to be used
by a different user account. However, if a profile needs to be used regularly by more
than one user, we would recommend that you use our User Profile Manager product.
User Profile Manager has functionality built in which minimizes the need for Windows
to create temporary profiles when a profile is in use. You can find details of User
Profile Manger at http://www.forensit.com/Profman/
66
T R O U B L E S H O O T I N G
When you run the User Profile Wizard, the Wizard reports that is cannot find the
domain controller for the domain, or the migration fails because The RPC server is
unavailable.
RESOLUTION
There is probably a DNS configuration problem. You need rectify the problem so that
the Wizard can correctly resolve the new Domain Controller name.
CAUSE
It sometimes happens that a new domain is added to a network without the existing
domain (or domains) being reconfigured. Commonly, if there is an existing DNS
server, there is no Forwarders entry pointing to the DNS server for the new domain.
On Windows 2003 Server you can add a new Forwarder entry for the new domain as
follows.
1. Run dnsmgmt. (DNS from the "Administrative Tools" menu.)
2. Select the existing DNS server.
3. Double-click "Forwarders" in the right-hand pane.
4. Click "New.." and add a new Forwarder entry for the new domain.
67
E N D
U S E R
L I C E N S E
A G R E E M E N T
68
E N D
U S E R
L I C E N S E
A G R E E M E N T
69