vbs et profile itinerant

vbs et profile itinerant - Windows & Software

Marsh Posté le 01-02-2006 à 12:05:33    

Bonjour
Je voudrais en vbs, que mon script indique à un utilisateur itinérant le chemin du profile où est héberger celui ci. Comment cela est il possible?
Merci de votre aide
Merci

Reply

Marsh Posté le 01-02-2006 à 12:05:33   

Reply

Marsh Posté le 01-02-2006 à 12:20:30    

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


Message édité par raphaeldavid le 01-02-2006 à 12:21:04
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed