Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


January 2003

The Moveuser Utility

This quirky but useful tool lets you move or copy user profiles
RSS
Subscribe to Windows IT Pro | See More Resource Kit Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

You recently set up a desktop OS for a user and installed a bunch of applications. A few days later, you learn that you need to change that account to a domain account, but all the configuration you did resides in a local profile. You'd love to be able to simply copy that profile from the local account to a domain account, but doing so isn't as easy as it sounds. You can't copy a profile simply by copying a few folders—you'd first need to adjust several registry settings and permissions, and those adjustments aren't well documented. You don't want to duplicate all your configuration work, so what do you do?

Microsoft Windows 2000 Server Resource Kit Supplement One contains a utility called Moveuser. This convenient—if incomplete—solution performs one useful task: It can move or copy an account profile to either another local account profile or a domain profile. (Moveuser's documentation doesn't say that you can use the utility to copy from a domain account, and I haven't been able to make Moveuser work in that way. As far as I can tell, the reason for this lack of functionality is a matter of permissions.)

Before you can use Moveuser, you must log on as someone who has the ability to create and modify user accounts on both the source and target machines. Moveuser's syntax is simple:

moveuser <sourceuser> <targetuser> [/k] [/y]
[/c:\\<computername>]

You can express the sourceuser and targetuser names as either username or domainname\username. For example,

moveuser jane julie

takes the user account and profile of a local user named Jane and moves it to a different user account named Julie on the same computer. This process is essentially a renaming operation; after it's finished, the Jane local account and profile no longer exist, and a new Julie local account and profile appear. Alternatively, the command

moveuser jane bigfirm\julie

moves the Jane local user account to a new domain account named Julie in a domain named Bigfirm.

In both cases, Moveuser actually moves the profile, leaving only pieces of the old profile behind. If Jane were to log on after Moveuser moved her profile to Julie, Jane would find herself largely without a profile. In my experiments, attempting to log on to the source account after Moveuser does its work makes the system lock up. To copy the profile instead of moving it, add the /k option, as follows:

moveuser jane julie /k

When moving a profile, Moveuser doesn't expect to find a profile with the same name in the new location. In fact, in my experience, Moveuser not only fails in such a case but also leaves the source profile unusable.

You can use the /y option to instruct Moveuser to overwrite an existing profile. If a Julie account already exists, none of the previous Moveuser examples will work, but the following command will:

moveuser jane julie /k /y

The /y option is also a bit quirky: If a profile named Julie doesn't exist for Moveuser to overwrite, Moveuser will fail. So be sure to use the /y option only when the target account contains the profile that you tell Moveuser to overwrite.

Finally, Moveuser offers the /c: option, which you can use to instruct the tool to move accounts on a remote machine. Suppose you're sitting at a machine called PC22 and you want to move Jane's profile to Julie's. Typing

moveuser jane julie

causes Moveuser to look for a Jane account and profile on the PC22 machine. But if Jane's account and profile are on a different machine called PC99, you don't need to walk over to PC99 to use Moveuser. Just type

moveuser jane julie /c:\\pc99

If Moveuser doesn't suit your needs, remember that the Microsoft Active Directory Migration Tool (ADMT) can also move profiles. However, ADMT moves profiles only from domains to native-mode domains.

End of Article



Reader Comments
This seems like a good tool. I'm trying to replace our local users with the domain users, but keep geting error 5 access denied. Tried logging into the windows 2000 domain, and locally with the adninistrator, with no luck. Any ideas.

Thanks

jmorelan72066@hotmail.com November 22, 2003


Hello,

In your experience, would it be possible to move a domain user profile to another server on the same domain using moveuser.exe?

Kyle March 10, 2004


There is better tool:
ForensiT User Profile Wizard Version 2.0
http://www.forensit.com/Profwiz/Default.htm

Nonstop April 01, 2004


Jim-You might check out the User State Migration Tool available from Microsoft. I haven't used it, but it claims to copy over documents, settings, etc. I started to install it and then realized it wouldn't help in our situation. We are consolidating a few NT4 and 2k domains into one 2003 AD. The problem is that all users in all domains had an account in one NT4 domain for their Exchange account, so we have to migrate the one domain and then transfer the profiles, data, etc. of the users in the other domains. Straightforward ADMT will work for users in the Exchange-containing domain, but not the others.

Chris April 01, 2004


Where i can get the moveuser.exe file for Windows 2000, the one from Windowxs 2003 Resource Kit do not work in Windows 2000, thanks

Carlos Mario Álvarez July 08, 2004


moveuser.exe is only available on the "Microsoft Windows 2000 Server Resource Kit Supplement One" It's a addendum to the original 2000 server resource kit, for about $50.00. It's no longer made, but you can find retailers on Amazon

Anonymous User December 02, 2004


Windows Server 2003 Resource Kit Tools:

http://www.microsoft.com/downloads/thankyou.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

Anonymous User February 08, 2005 (Article Rating: )


This doesn't work, would someone explain the right order here, do i start this while still logged in as OLD_DOMAIN\user or do i re-join this computer to the new domain first, and THEN run the utility? thanks

mdxxd March 03, 2005 (Article Rating: )


I have the same problem of first post.

Anonymous User March 16, 2005 (Article Rating: )


I keep getting and Error 2, file not found error. The moveuser tool does not seem to work

Anonymous User June 13, 2005 (Article Rating: )


 See More Comments  1   2 

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...


Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Cutting Costs with Client Management

Introduction to Identity Lifecycle Manager "2"

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement