Ada Pan [MSFT]
Guest
|
Posted:
Mon Oct 24, 2005 12:50 pm Post subject:
RE: From roaming profiles to mandatory |
|
|
Hi Geir,
1. Yes, the new machine with Windows Server 2003 installed will
automatically replicate the data in AD from the Windows 2000 Server after
you join it to the domain and prompt it to DC.
For more information for upgrading from Windows 2000 Server to Windows
Server 2003, please take a look at the following guide article.
Upgrading from Windows 2000 Server to Windows Server 2003
http://www.microsoft.com/windowsserver2003/upgrading/w2k/default.mspx
2. After upgrading, I understand that you want to change the path for
roaming profile from the old 2000 server to the new server 2003. To do it,
you need to manually change the path in AD. This could be a very complex
job if there are a large number of users. I think we may use an ADSI VB
script to automatically replace the roaming profile address for all of the
user accounts.
For your convenience, I have developed an example VB script with the
following code. Please read it carefully.
''''''''''''''''''''''''''''''''''''
'
' ChangeRoamingProfile.VBS
'
' Description: ChangeRoamingProfile.VBS checks each user's properties and
see
' where the roaming profile is physically saved.
' If it is located on Server01, the script changes it to Server02.
'
' Version Number: 1.0
' Last Modified Date: 07/21/2004
'
' NOTE: This is JUST an example for your reference.
' Please perform a complete backup for your domain, make necessary
changes and perform tests first.
'
''''''''''''''''''''''''''''''''''''
'-------------------------------------------------------
' Please Replace The Two Lines Below:
'-------------------------------------------------------
Const Location01 = "\\OriginalFileServer\OriginalShare"
Const Location02 = "\\TargetFileServer\TargetShare"
'-------------------------------------------------------
' The ifDebug variable is used to for debug purpose.
' If it is set to 1, the debug switch is on.
'-------------------------------------------------------
ifDebug=0
'-------------------------------------------------------
' Bind to the Container Object and User object
'-------------------------------------------------------
On Error Resume Next
'-------------------------------------------------------
' Please Replace The Line Below:
'-------------------------------------------------------
Set oCont = GetObject("LDAP://CN=Users,DC=YourDomainName,DC=com")
oCont.Filter = Array("User")
For Each oUser In oCont
'-------------------------------------------------------
' Replace the Roaming Profile Location
'-------------------------------------------------------
If ifDebug then MsgBox (oUser.samAccountName & "+" & oUser.profilePath)
'-------------------------------------------------------
' Check if the user is using roaming profile.
'-------------------------------------------------------
sRoamingProfile=oUser.profilePath
IsRoaming=InStr(1, sRoamingProfile, Location01, 1)
If IsRoaming<>0 Then
sNewRoamingProfile = Replace(sRoamingProfile, Location01,
Location02,1,1,1)
oUser.Put "profilePath", sNewRoamingProfile
oUser.SetInfo
End If
Next
'-------------------------------------------------------
' End of Program
'-------------------------------------------------------
Code VB Script for the customer
IMPORTANT NOTE:
================
1. Microsoft provides programming examples, without warranty either
expressed or implied, including, but not limited to, the implied warranties
of merchantability and/or fitness for a particular purpose. We assume that
you are familiar with the programming language being demonstrated. If you
are not familiar with programming, you may want to contact a Microsoft
Certified Partner or the Microsoft fee-based consulting line at (800)
936-5200.
2. This above sample code is ONLY provided for your reference. Please check
it carefully, make necessary adjustments, and use it at your own risk. It
is highly recommended to perform a complete backup for your domain and
perform enough tests in a lab environment first.
3. As you know, this newsgroup is primarily for break-fix situations.
If you need further assistance in developing the VB script, you are welcome
to submit question in our Developer newsgroups. For your convenience, I
have provided the link below:
http://msdn.microsoft.com/newsgroups/default.asp
Or you may ask for developer support:
http://support.microsoft.com/directory/directory/phonepro.asp?sd=msdn
There is more qualified pool of respondents who can give you suggestions.
Meanwhile, other partners who visit the newsgroups regularly can either
share their knowledge or learn from your interaction with us.
3. To make the profile mandatory, rename the Ntuser.dat file as Ntuser.man
in the user's profile folder.
How To Create a Roaming User Profile in Windows Server 2003
http://support.microsoft.com/kb/324749
HOW TO: Assign a Mandatory User Profile in Windows 2000
http://support.microsoft.com/kb/323368
Hope it helps.
Regards,
Ada Pan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights. |
|