-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yes. There is a DLL that you can move over from a Windows Server 2003 machine and regsvr32 it on a Windows XP or 2000 machine (I believe a Windows 2000 machine). It's called TSUSEREX.DLL. It's located in the %SYSTEMROOT%\System32 folder. Here's a link to the various properties and some sample code: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/te rmserv/iadstsuserex.asp Chris - -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Jeff Durbin Sent: Thursday, January 15, 2004 10:23 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: OT: populate AD user info I've got Thomas Eck's DLL that wraps the TS API calls for setting TS Properties, but as I recall it doesn't allow you to query them. If anyone wants it, let me know. He also wrote an article for WinNet mag that (I think) was about wrapping TS API calls I haven't tried getting at TS properties in Win2K3. Does anyone know what changed in W2K3 to expose it? Is it a DLL that can be registered in Win2K, or did they move the properties into the schema? BTW, the utility for reading/writing them from the cmd line is TSCMD. JD - -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Brian Lilley Sent: 16 January 2004 12:12 AM To: 'thin@xxxxxxxxxxxxx' Subject: [THIN] Re: OT: populate AD user info Once again... thanks Neil, re: the ts profile stuff, thats the conclusion I came to also, I did actually try and wrap the unmanaged exported terminal services api with .net but, like you say, trying to understand the parameters had me flumoxed, mostly because I don't come from the old 'C' days. So, I used tsprof in the end.... :o) cheers again, Brianos - -----Original Message----- From: Braebaum, Neil [mailto:Neil.Braebaum@xxxxxxxxxxxxxxxxx] Sent: 15 January 2004 10:49 To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: OT: populate AD user info Comments inline... > -----Original Message----- > From: Brian Lilley [mailto:Brian.Lilley@xxxxxxxxxxxxx] > Sent: 15 January 2004 10:34 > To: 'thin@xxxxxxxxxxxxx' > Subject: [THIN] Re: OT: populate AD user info > > Neil, > > What is HTA??? HTML application. Useful in this context, because you can do stuff, effectively in client-side browser code that would normally break, or be stopped, by the browser's security model. Plus you don't necessarily need a web server to provide for it. Things like add / remove programs in W2K are HTAs, as are other OS type dialogs / GUIs. > And while were on the subject... > > I am trying to pull out term services specific info for users via the > ADSI interface and the WinNT provider, Good luck with that! ;-) But seriously - ya can't - at least not like that. It was outside of ADSI (unless you truly are a steely-eyed missile man, and can decode userparameters?) - at least until you've got W2K3 across the board. > here is a VB script that > should work Um, good luck with that (TM) ;-) > Set DSO = GetObject("WinNT:") > Set usr = DSO.OpenDSObject("WinNT://OURDOMAIN/username01", > "OURDOMAIN\administratorid", "password", ADS_SECURE_AUTHENTICATION) Quick tip - don't use opendsobject with the WinNT provider - otherwise, devils be there. > usr.GetInfo > WScript.echo usr.TerminalServicesProfilePath WScript.echo > usr.HomeDirectory WScript.echo usr.FullName WScript.echo > usr.Description In the style of Brick Top: you're always going to have problems using the WinNT provider, and much user stuff - at least one of the above is only available via the LDAP provider. > when I run it, it bombs out with > > C:\temp\b.vbs(8, 1) Microsoft VBScript runtime error: Object doesn't > support this property or method: 'usr.TerminalServicesProfilePath' Quite reasonable - it doesn't. With W2K3, you can do it (although you may need to check the property name is accurate), but I believe you need W2K3 at more than one end. > if i query any 'standard' properties on the DSO object other than TS > related ones, it works fine? fullname should barf, too, via the WinNT provider. The problem being that these things are not true properties in the schema, they are part of a data blob - which is no doubt partly the reason why Microsoft stuck it to us with not being able to deal with these things with ADSI (at least vanilla) before W2K3. There are COM object distributed that wrap the API calls to do this for W2K environments - you'd have to register the appropriate DLL(s) and use objects exposed through them. Or there's tsprof - which is standard, so you could call this from within your vbscript, with the parameters selected or identified. There's also another utility - somewhere on thethin.net that allows you to modify all the TS properties from the command line, which you could call from within an ADSI script, so that you could set everything in one place. Neil *********************************************** This e-mail and its attachments are confidential and are intended for the above named recipient only. If this has come to you in error, please notify the sender immediately and delete this e-mail from your system. You must take no action based on this, nor must you copy or disclose it or any part of its contents to any person or organisation. Statements and opinions contained in this email may not necessarily represent those of Littlewoods. Please note that e-mail communications may be monitored. The registered office of Littlewoods Limited and its subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB. Registered number of Littlewoods Limited is 262152. ************************************************ ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************* Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm _____________________________________________________________________ This message has been checked for all known viruses on behalf of Vivista by MessageLabs. http://www.messagelabs.com or Email: mailsweeper.info@xxxxxxxxxxxxx Vivista formerly Securicor Information Systems for further information http://www.vivista.co.uk ********************************************************************** The information contained in this e-mail message is intended only for the individuals named above. If you are not the intended recipient, you should be aware that any dissemination, distribution, forwarding or other duplication of this communication is strictly prohibited. The views expressed in this e-mail are those of the individual author and not necessarily those of Vivista Limited. Prior to taking any action based upon this e-mail message you should seek appropriate confirmation of its authenticity. If you have received this e-mail in error, please immediately notify the sender by using the e-mail reply facility. ********************************************************************** _____________________________________________________________________ This message has been checked for all known viruses on behalf of Vivista by MessageLabs. http://www.messagelabs.com or Email: mailsweeper.info@xxxxxxxxxxxxx Vivista formerly Securicor Information Systems for further information http://www.vivista.co.uk ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************* Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************* Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm -----BEGIN PGP SIGNATURE----- Version: PGP 8.0.3 Comment: Public PGP Key for Chris Lynch. iQA/AwUBQAbqJm9fg+xq5T3MEQJPLACeLPVWJYK8qSjJm0lTluyaNtMlUBkAn2t5 /d5uhkH+tbCFO/6YErN5ujBO =sS3T -----END PGP SIGNATURE----- ******************************************************** This Week's Sponsor - RTO Software / TScale What's keeping you from getting more from your terminal servers? Did you know, in most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! Get this free white paper to understand the real constraints & how to overcome them. SAVE MONEY by scaling-up rather than buying more servers. http://www.rtosoft.com/Enter.asp?ID=147 ********************************************************* Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm