Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify User Profile PathsContent of Modify User Profile Paths.vbsMD5 Hash: 9B75EDC1E78AD68DBE9ABFFD6C31AF61 |
||
' Description: 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 - 11 strRemains = Mid(strCurrentProfilePath, 12, intStringRemains) strNewProfilePath = "\\fabrikam" & strRemains objUser.Put "profilePath", strNewProfilePath objUser.SetInfo | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |