You could use ADODB.Command to query AD just like a SQL statement. A google search should help. Regards, Ormond Merino -----Original Message----- From: msemon@xxxxxxx [mailto:msemon@xxxxxxx] Sent: Tuesday, October 18, 2005 3:22 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Home directory and Profile Script I am trying to create a script to pull from Active Directory all users which have TS Home Directories and Profiles. What I have so far works for a single user account, for example jones. Is there a way to do this for all users in AD. Set objUser = GetObject _ ("LDAP://cn=jonesBill,ou=Management,dc=NA,dc=dc1,dc=com";) WScript.Echo "Terminal Services Profile Path : " & _ objUser.TerminalServicesProfilePath WScript.Echo "Terminal Services Home Directory: " & _ objUser.TerminalServicesHomeDirectory WScript.Echo "Terminal Services Home Drive: " & _ objUser.TerminalServicesHomeDrive WScript.Echo "Allow Logon: " & objUser.AllowLogon -Mike -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . ******************************************************** This Weeks Sponsor: Cesura, Inc. Know about Citrix end-user slowdowns before they know. Know the probable cause, immediately. Know it all now with this free white paper. http://www.cesurasolutions.com/landing/WPBCForCitrix.htm?mc=WETBCC ******************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm ThinWiki community - Excellent SBC Search Capabilities! http://www.thinwiki.com *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ----------------------------------------- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system. ******************************************************** This Weeks Sponsor: Cesura, Inc. Know about Citrix end-user slowdowns before they know. Know the probable cause, immediately. Know it all now with this free white paper. http://www.cesurasolutions.com/landing/WPBCForCitrix.htm?mc=WETBCC ******************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm ThinWiki community - Excellent SBC Search Capabilities! http://www.thinwiki.com *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm