Microsoft KB Archive/930955

= Moveuser.exe is incompatible with Windows Vista and is replaced by the new Win32_UserProfile WMI functionality =

Article ID: 930955

Article Last Modified on 8/24/2007

-

APPLIES TO


 * Windows Vista Enterprise 64-bit Edition
 * Windows Vista Ultimate 64-bit Edition
 * Windows Vista Business
 * Windows Vista Business 64-bit Edition
 * Windows Vista Enterprise
 * Windows Vista Ultimate

-



SUMMARY
The Windows Resource Kit tool Moveuser.exe is incompatible with Windows Vista. In earlier versions of Windows, Moveuser.exe is used to map an existing local user account profile to a new domain profile when a computer in a workgroup is joined to a domain. Alternatively the tool can also used to map an existing domain account profile to another new domain account profile. However, you cannot use the Moveuser.exe tool to perform these tasks on a Windows Vista-based computer.



RESOLUTION
After you install the update that is described in this article, the User Profile Windows Management Instrumentation (WMI) provider (Win32_UserProfile) is added in Windows Vista. This User Profile WMI provider replaces Moveuser.exe in Windows Vista. The new User Profile WMI provider can be used to map an existing local account profile to a new domain based account. It can also be used to map an existing domain-based account profile to a new domain-based account profile.

Update information
The following files are available for download from the Microsoft Download Center:

Windows Vista, 32-bit versions

Download the Windows6.0-KB930955-x86.msu package now.

Windows Vista, 64-bit versions

Download the Windows6.0-KB930955-x64.msu package now. For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

Prerequisites
To apply this update, you must have Windows Vista installed.

Restart requirement
You must restart the computer after you apply this update.

Update replacement information
This update does not replace any other updates.

File information
The English version of this update has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Windows Vista, 64-bit versions


Information about how to use the User Profile WMI provider
 The source user profile cannot be private. Any folder redirection to a local volume or to a server must be disabled. Access to the following settings is not preserved:  Encrypted files Certificates The user account picture</ul> </li> Disable encryption for any files before you map any profile to another new user account profile.</li> User saved passwords will not be mapped from the local profile to the domain profile. Therefore, the user will be prompted to reenter these passwords the first time that they access the associated program. For example, the user will be prompted to reenter the password for Windows Live Messenger the first time that they start the program after the profile is moved.</li> The User Profile WMI provider is implemented like other WMI interfaces by using WMI tools, scripts, or applications that use the WMI COM interface. For more information about how to use WMI, see the&quot;About WMI&quot; topic at the following MSDN Web site:

http://msdn2.microsoft.com/en-us/library/aa384642.aspx

</li> To learn specifically about the management functions that the User Profile WMI provider supports, use a repository browsing tool to explore the class in the \root\CIMV2 namespace.</li></ul>

Visual Basic script examples
<ul>  The following Microsoft Visual Basic script example retrieves a user profile object through the user name and the domain and then deletes the user profile object. strComputer =&quot;.&quot; Set objAccount = GetObject(&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot; _                           & strComputer &&quot;\root\cimv2:Win32_UserAccount.&quot; _                            &&quot;Domain='contoso',Name='fabrikam'&quot;) Set objUserProfile = GetObject(&quot;winmgmts:{impersonationlevel=impersonate}!\\&quot; _                              & strComputer &&quot;\root\cimv2:Win32_UserProfile.&quot; _                               &&quot;SID='&quot; & objAccount.SID &&quot;'&quot;) objUserProfile.Delete_ </li> RoamingPreferenceis the only property that can be set by a user who has administrative credentials. The following Visual Basic script example retrieves and displays information about all the profiles on the local computer. <ul> To run the Visual Basic script against a remote computer, set the value of the strComputer variable to the name or the IP address of the remote computer. The placeholder RemoteComputerName is used to set the variable in the following example:

strComputer = .</li> When you run this script by using Wscript.exe, one series of message boxes is displayed for each profile. You receive one message box for each profile. You have to click OKto close each message.</li> To avoid these message boxes, run the script by using Cscript.exe instead of Wscript.exe. When you use Cscript.exe, the information is displayed at the command prompt instead of as message boxes. To run the following script by using Cscript.exe, type cscript.exe at the command prompt, and then press ENTER.</li></ul> </li></ul>

strComputer =&quot;.&quot; Set objWMIService = GetObject(&quot;winmgmts:\\&quot; & strComputer &&quot;\root\cimv2&quot;) Set colProfiles = objWMIService.ExecQuery(&quot;Select * from Win32_UserProfile&quot;) For Each objProfile in colProfiles Set objSID = objWMIService.Get(&quot;Win32_SID.SID='&quot; & objProfile.SID &&quot;'&quot;) Wscript.Echo&quot;======================================================&quot;& VBNewLine _ &&quot;Sid:&quot; & objProfile.Sid & VBNewLine _ &&quot;User Name:&quot; & objSID.AccountName & VBNewLine _ &&quot;User Domain:&quot; & objSID.ReferencedDomainName & VBNewLine _ &&quot;LocalPath:&quot; & objProfile.LocalPath & VBNewLine _ &&quot;Loaded:&quot; & objProfile.Loaded & VBNewLine _ &&quot;RefCount:&quot; & objProfile.RefCount & VBNewLine _ &&quot;RoamingConfigured:&quot; & objProfile.RoamingConfigured & VBNewLine _ &&quot;RoamingPath:&quot; & objProfile.RoamingPath & VBNewLine _ &&quot;RoamingPreference:&quot; & objProfile.RoamingPreference & VBNewLine _ &&quot;Status:&quot; & objProfile.Status & VBNewLine _ &&quot;LastUseTime:&quot; & objProfile.LastUseTime & VBNewLine _ &&quot;LastDownloadTime:&quot; & objProfile.LastDownloadTime & VBNewLine _ &&quot;LastUploadTime:&quot; & objProfile.LastUploadTime & VBNewLine Next

<div class="moreinformation_section">

For more information about the terms that are used to describe software updates, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbbug kbfix kbqfe kbpubtypekc atdownload kbhotfixserver KB930955

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.