Thomas Eck, author of 'Windows NT/2000 ADSI Scripting for System Administration' (which, in my opinion, is a MUST HAVE for any consultant or administrator), has written about this very subject. With ADSI, you can get to and set just about all parts of the user's properties, with the exception of the TS Profile Path and the TS Home Drive. You CAN set it using API calls, but you can't use API calls in VBScript. The answer to this is to encapsulate the API calls in a COM object (a DLL) that CAN be accessed by VBScript. He's written just such a COM object and you can download it. I use it all the time to set TS Profile Paths and TS Home Drives from VBScript. His book about ADSI scripting: http://www.amazon.com/exec/obidos/tg/detail/-/1578702194/qid=3D1052766646= / sr=3D8-1/ref=3Dsr_8_1/102-9993642-0325759?v=3Dglance&s=3Dbooks&n=3D507846= Part 1 of his article explaining the problem and the solution: http://www.winscriptingsolutions.com/Articles/Index.cfm?ArticleID=3D20139= & pg=3D1&show=3D664 Part 2 of the article, where he tells you how to compile the DLL: http://www.winscriptingsolutions.com/Articles/Index.cfm?ArticleID=3D20509= & pg=3D1&show=3D824 JD -----Original Message----- From: Rob Beekmans [mailto:robbeekmans@xxxxxxxxxxxxx]=20 Sent: Monday, May 12, 2003 9:49 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Applying TsProfilePath via TSCMD with Variables Like a lot of other people on this list, I'm looking for a way also for a long time There is no simple way of doing this. We tried to change the schema so that when copying a user the tsprofile paths would be inherited like the profile paths do. This didn't work unfortunatly.... So I stand beside you in your quest for the holy script. Grx Rob -----Oorspronkelijk bericht----- Van: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] Namens Jacob Walker Verzonden: maandag 12 mei 2003 15:33 Aan: thin@xxxxxxxxxxxxx Onderwerp: [THIN] Applying TsProfilePath via TSCMD with Variables I have a list of userids for which I would like to change their=20 TerminalServerProfilePath to all be: %profile%\%username% TSCMD doesn't seem to like the variables. Is there anyway that I can do this? (Sorry, but I'm not much of a scripting expert.) _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* =20 http://join.msn.com/?page=3Dfeatures/junkmail ******************************************************** This Week's Sponsor - Emergent Online EOL's Universal Printer new Features include: Network Printing, Pagestreaming, 2400 DPI. No Client Software Required! http://www.go-eol.com/ ********************************************************** For Archives, to Unsubscribe, Subscribe or=20 set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - Emergent Online EOL's Universal Printer new Features include: Network Printing, Pagestreaming, 2400 DPI. No Client Software Required! http://www.go-eol.com/ ********************************************************** For Archives, to Unsubscribe, Subscribe or=20 set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - Emergent Online EOL's Universal Printer new Features include: Network Printing, Pagestreaming, 2400 DPI. No Client Software Required! http://www.go-eol.com/ ********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm