Something like:
Const ADS_PROPERTY_CLEAR = 1 Use ADO to query you AD for the users' DistinguishedName Then do:
objUserDN = objRecordSet.Fields("distinguishedName").Value
Set ObjPath = getObject("LDAP://" & objUserDN) objPath.PutEx ADS_PROPERTY_CLEAR, "profilePath", 0 objPath.SetInfo 'Do It Now HTH
Sincerely, Dèjì Akómöláfé, MCSE MCSA MCP+I www.akomolafe.com www.iyaburo.com Do you now realize that Today is the Tomorrow you were worried about Yesterday? -anon From: Creamer, Mark Sent: Fri 1/2/2004 1:52 PM To: [EMAIL PROTECTED] Subject: [ActiveDir] setting TS properties I found a control (wts_admin.dll) that will allow me to set terminal services properties for a user in a Win2K domain, such as profile path, home directory etc. These extensions are only available from Microsoft for Windows 2003 as I understand it (http://msdn.microsoft.com/library/default.asp?url="">)
When I use the control to set the profile path, it works fine, but I want to clear it so no path is specified. I thought just passing “” as the string would work, but it fails.
Is that a function of the way the control is written? I just want to clear the path for each user…if there’s a better way, please share… Thanks!
Mark Creamer Systems Engineer Cintas Corporation Honesty and Integrity in Everything We Do
|
- [ActiveDir] setting TS properties Creamer, Mark
- deji Agba