Have you taken a look at the source code for the DLL that Thomas Eck wrote? -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Durbin, Jeff Sent: Wednesday, July 09, 2003 10:52 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Querying TSProfilePath, TSHomeDrive via Script? Thanks. I hadn't looked at TSCMD closely enough. I have VBScripts that I use to query a domain for every user and gather username, homedrive, profile path, etc., so I'd still like to have a COM object if anyone has one. Thanks again. -----Original Message----- From: Angus Macdonald [mailto:Angus.Macdonald@xxxxxxxxxxxxxxxxxxx] Sent: Wednesday, July 09, 2003 2:14 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Querying TSProfilePath, TSHomeDrive via Script? tscmd will return the current value of a variable if you don't specify a new value. ie tscmd.exe nwwyg1 angus timeoutidle would return my current idle timeout value. -----Original Message----- From: Durbin, Jeff [mailto:jdurbin@xxxxxxxxxxxxxxxxxxx] Sent: 08 July 2003 23:14 To: thin@xxxxxxxxxxxxx Subject: [THIN] Querying TSProfilePath, TSHomeDrive via Script? Does anyone have any code for getting TSProfilePath and TSHomeDrive via VB or VBScript? I have Thomas Eck's COM object - it only allows you to *set* TSProfile path and TS Home Drive. I also know about TSCMD, which has the same limitation. Has anyone created a COM object to query this information from Win2K? I keep meaning to write one, but it keeps getting pushed down the priority list. Thanks in advance. Jeff Durbin