A-ha, foolishly using the profile section for home drives. Create an LDAP object: Set ObjUser = GetObject(“LDAP://cn=auser,ou=users,dc=domain,dc=com”).
Then you can .get for the homeDirectory or homeDrive so you should be able to do a .put. ObjUser.Put(“homeDirectory”, mystring). I’ve only done this on new users and I had end it with ObjUser.SetInfo whilst calling the puts.
You should be able to see something relating to this in the MS Script Center if you search for “homedrive ldap”. I’m going to do this soon.
To get the logged on user’s username (their cname) create a network object and get a string with the name from ObjNet.UserName. Stick that in your LDAP link. e.g …cn=” & namestring & “,ou=us…