homedir problem

  • Thread starter Thread starter JeanMi_9
  • Start date Start date
J

JeanMi_9

Hi all,

I have make this code to create homedir for my users

objuser.put "homedirectory","\\myserver\homedir\user"
objuser.put "homedrive",objuser.put "homedirectory","P:"
objuser.setinfo

How to make opposite?

I have try this but I have a syntax error

objuser.put "homedirectory",""
objuser.put "homedrive",""
objuser.setinfo

Thanks for your help
 
Something like this will work:

Const ADS_PROPERTY_CLEAR = 1

objUser.PutEx ADS_PROPERTY_CLEAR, "homeDrive", Nothing

--
Thanks,
Brian Desmond
Windows Server MVP - Directory Services

www.briandesmond.com
 
Back
Top