Makeing Changes to user profile path in active directory?

  • Thread starter Thread starter Jimmy
  • Start date Start date
J

Jimmy

I have recently migrated hundreds of users from an NT4
server to a 2000 server. The user migration worked except
for one issue, the new server has a slightly differant
name to the NT4 so all the home directory paths are still
mapping to the old server, how can I create a scrip to
change the home directory path of all these users in user
profiles on active directory?
 
You can try this one...

*******************

Set ou = Getobject("LDAP://ou=Sales,dc=demo,dc=com")

For each obj in ou

if obj.profilepath = "\\old-server\profile\" & obj.cn Then
obj.profilepath = "\\new-server\profile\" & obj.cn
obj.setinfo
end if

Next

*********************

regards
Johan Arwidmark

Windows User Group - Nordic
http://www.wug-nordic.net
 
Hi Jimmy and Johan , the new version of Active Directory Users and Computers
snapin supports editing the profile attribute for multiple user accounts.
Just select the numbers of users you want to change this attribute for and
right click and click properties.

Windows Server 2003 Administration Tools Pack:
http://www.microsoft.com/downloads/...15-c8f4-47ef-a1e4-a8dcbacff8e3&DisplayLang=en

Note this version of Administration Tool has to been installed on Windows XP
or Windows Server 2003 but can handle a Windows 2003 domain as well a
Windows 2000 Domain. Domain Controllers with Windows2000 should be running
SP4.
 
Back
Top