Changes the server name portion of the user profile path to \\fabrikam for the MyerKen Active Directory user account.
Set objUser = GetObject _("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")strCurrentProfilePath = objUser.Get("profilePath")intStringLen = Len(strCurrentProfilePath)intStringRemains = intStringLen - 11strRemains = Mid(strCurrentProfilePath, 12, intStringRemains)strNewProfilePath = "\\fabrikam" & strRemainsobjUser.Put "profilePath", strNewProfilePathobjUser.SetInfo
This is a VB Script, this can be used by saving the file in .vbs file