-----Original Message----- From: Boatman, Dave [mailto:Dave.Boatman@xxxxxxxxxxxxxx] Sent: 19 July 2002 12:57 To: thin@xxxxxxxxxxxxx Subject: [THIN] Scripting with TerminalServer.DLL Scripting - on a W2K AD, with TerminalServer.DLL What I'm trying to do : I'm getting a list of all the users from a particular OU and then I want to programmatically add the information to the Terminal Services Profile tab for each user (only within that OU) What I have: I have a bunch of OU's ( i.e. not the Users container) which hold the T/S users which I created via another script. Does the setsprofilepath property of the TerminalServer.DLL understand LDAP - i.e OU=TSUsers,DC=Banana,DC=Local ? If so what's the syntax ? Nope. No dice, there. I suppose if the .DLL isn't OU aware then I could write a list of the users in the OU to a file or array, then move them to the Users default container and only modify the list of usernames I got before I moved them and then finally move them back.. sounds like a bit of a long way round though. Yeah it does. Just loop 'round the user objects in the OU you wanna access (slick way of only getting the users, use filter). ie: you've got an object opened as the OU... objOU.filter=array("user") for each objUser in objOU ' whatever next Neil *********************************************************************** This e-mail and its attachments are intended for the above named recipient(s) only and are confidential and may be privileged. If they have come to you in error you must take no action based on them, nor must you copy or disclose them or any part of their contents to any person or organisation; please notify the sender immediately and delete this e-mail and its attachments from your computer system. Please note that Internet communications are not necessarily secure and may be changed, intercepted or corrupted. We advise that you understand and observe this lack of security when e-mailing us and we will not accept any liability for any such changes, interceptions or corruptions. Although we have taken steps to ensure that this e-mail and its attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. Copyright in this e-mail and attachments created by us belongs to Littlewoods. Littlewoods takes steps to prohibit the transmission of offensive, obscene or discriminatory material. If this message contains inappropriate material please forward the e-mail intact to postmaster@xxxxxxxxxxxxxxxxx and it will be investigated. Statements and opinions contained in this e-mail may not necessarily represent those of Littlewoods. Please note that e-mail communication may be monitored. Registered office: Littlewoods Retail Limited, Sir John Moores Building, 100 Old Hall Street, Liverpool, L70 1AB Registered no: 421258 http://www.littlewoods.com ***********************************************************************