|
Sujet : vbs et profile itinerant |
| raphaeldavid |
J'pense que ça peut t'aider
Citation :
Set objUser = GetObject _
("LDAP://cn=Nom_Utilisateur,ou=Nom_OU,dc=Nom_domaine,dc=com" )
strCurrentProfilePath = objUser.Get("profilePath" )
intStringLen = Len(strCurrentProfilePath)
intStringRemains = intStringLen - 11
strRemains = Mid(strCurrentProfilePath, 12, intStringRemains)
strNewProfilePath = "\\Serveur\Partage\%Username%" & strRemains
objUser.Put "profilePath", strNewProfilePath
objUser.SetInfo
|
|