Here is the code.
Step 1 - Run this when the user is logged into the old domain.
?"Reconfiguring Profile. This may take several minutes.."
$MAKEREGKEY = AddKey("HKEY_LOCAL_MACHINE\SOFTWARE\NewDomainMigration")
$PROF = ReadValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\ProfileList\@SID","ProfileImagePath")
$REGDESC =
WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\NewDomainMigration","Description","T
his key is for the migration to the NewDomain domain. DO NOT
delete","REG_SZ")
$REGPROF =
WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\NewDomainMigration","OldDomainProfil
e","$PROF","REG_SZ")
Copy "\\Server\Share\XCACLS.EXE" "%WINDIR%\SYSTEM32\XCACLS.EXE"
Shell '%COMSPEC% /C %WINDIR%\SYSTEM32\Xcacls.exe "%USERPROFILE%" /T /E /C
/G NewDomain\@USERID:F'
Step 2 - Run this after the user has logged into the new domain. Then
reboot.
$CWYPROF =
READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\NewDomainMigration","OldDomainProfile
")
$SETNewDomainPROF =
WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\ProfileList\@SID","ProfileImagePath","$CWYPROF","REG_EXPAN
D_SZ")
-----Original Message-----
From: Malcolm Reitz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1:02 PM
To: NT 2000 Discussions
Subject: RE: Profile Duplication
Tony,
We are using an app from Microsoft called "User State Migration Tool".
However, we are using it for a migration from NT4 to XP, so, now that I
think about it, this probably wouldn't help you.
You could copy the profiles manually. That's a bit of a pain, but it does
work. 1. Log in as user from NEW domain. 2. Log in as local administrator.
3. Right-click on my computer, go to profiles tab. 4. Copy old domain
profile to new domain profile folder (usually something like userid.000)
Malcolm
-----Original Message-----
From: Woods, Tony MHR:EX [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 08, 2002 4:57 PM
To: NT 2000 Discussions
Subject: Profile Duplication
Hi all,
I've got a client that is migrating from one domain to another. We want it
to be as simple as this. They log off at night from one domain, log into the
new one the next morning. Everything is in place except for one thing. We
must preserve their profiles. Roaming users won't matter but there aren't
many, about 5% out of 3500. These are NT 4 machines in NT 4 domains. We've
been given a 3rd party tool that looks up the local id in C:\winnt\profiles
directory, finds the current domain SID, searches the new domain for the id
and SID, once it finds it, adds the SID in the registry under
HKLM\Software...etc\profilelist. It works (in the sense that it finds both
SID's and creates the new SID's key in the registry with the same profile
path) but when you log into the new domain, you don't get your profile. What
tools have you all used?
Cheers,
Tony
Tony Woods MCSE, CNA
Ministry of Human Resources
808 Douglas Street
Victoria, BC, Canada, Earth
http://www.mhr.gov.bc.ca <http://www.mhr.gov.bc.ca>
------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%
------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%
*********************************************************************
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.
------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]