[THIN] Home directory and Profile Script

  • From: "msemon@xxxxxxx" <msemon@xxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Tue, 18 Oct 2005 15:22:06 -0400

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

Other related posts: