Was it something like this?
>$OriginalUser = gwmi win32_userprofile -ComputerName testbox123 -Filter "SID = 'S-1-5-21-2849508690->365014496-115750160-1011'"
>$NewUser = get-wmiobject "Win32_UserAccount WHERE Name='xxxxxxx'"
>$Profile = gwmi win32_userprofile -ComputerName testboxcpc -filter "SID='$($OriginalUser.SID)'"
>$Profile.ChangeOwner($NewUser.SID, 0)
From: Stefan Ozminski [mailto:[log in to unmask]]
Sent: Wednesday, December 03, 2014 2:55 PM
To: Jesse Howard; [log in to unmask]
Subject: Re: [MSUNAG] User State Migration Tool
Jesse,
I have had success with USMT doing the kind of thing you ask. However, starting with Windows Vista, WMI provides functions to manipulate user profiles in place.
I wrote a script that takes advantage of the ChangeOwner method of Win32_UserProfile. It changes the user profile owner in place, whereas USMT is designed to export the user profile to a file and then reload it. Changing the owner in place is faster and more effective in that fewer settings get lost.
-Stefan
On 12/3/2014 14:44, Jesse Howard wrote:
Looks like it does.
Thanks for the help!
From: Jesse Howard [mailto:[log in to unmask]]
Sent: Wednesday, December 03, 2014 2:40 PM
To: [log in to unmask]
Subject: Re: [MSUNAG] User State Migration Tool
Looks promising.
Is this a utility that lets you plug in your parameters and then returns a script? If so, can you do more than one machine at a time?
Thanks,
From: Chad Randall [mailto:[log in to unmask]]
Sent: Wednesday, December 03, 2014 2:32 PM
To: Jesse Howard
Subject: RE: [MSUNAG] User State Migration Tool
I’ve been moving a few users to new machines and have had luck with Transwiz from ForensIT.
http://www.forensit.com/downloads.html
let me know if you want details on my process.
//Chad Randall | Graduate School | 517-432-7331
From: Jesse Howard [mailto:[log in to unmask]]
Sent: Wednesday, December 03, 2014 2:25 PM
To: [log in to unmask]
Subject: [MSUNAG] User State Migration Tool
Windows Gurus –
I want to install a new AD domain in my office. the workstations are all Win7. I would like to join a workstation to the new domain, then migrate the user profile to the new domain on the same machine.
Can I do this with USMT?
Thanks,
Jesse Howard
IT Administrator
Michigan State University Press