Comments inline... > -----Original Message----- > From: thin-bounce@xxxxxxxxxxxxx > [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Jeff Malczewski > Sent: 26 July 2004 14:48 > To: 'thin@xxxxxxxxxxxxx' > Subject: [THIN] Re: Setting up network Printers on Windows > 2003 Terminal Server issue > > The Kix code is simple enough, but you have to have Kix > installed everywhere to use it.. No you don't. I always call it from the NETLOGON share, where the scripts actually are. For more bandwidth challenged scenarios, you can cache the executable locally. For NT platforms onwards, there is no install - it's just a single executable. > VBS is built into the OS as > long as you're using 98 (IIRC) or later... That's disengenous, again. vbscript support is not built into the *OS* it's part of the WSH / browser component. > To check membership with VBS (and add the printer if the user > is a member), this would be the code (lines two and three are > the membership checking > lines): > > Set WshNetwork = CreateObject("WScript.Network") > Set oGroup = > GetObject("LDAP://CN=<GROUPNAME>,CN=Users,DC=<DOMAIN>,DC=<TLD>") > mem = > oGroup.IsMember("LDAP://CN=<USERNAME>,OU=<OU>,DC=<DOMAIN>,DC=< > DOMAIN>") > If (mem = True) Then > WshNetwork.AddWindowsPrinterConnection > "\\<servername>\<printername>" > WshNetwork.SetDefaultPrinter > "\\<servername>\<printername>" End If What would you do were it nested group membership... What would you do if you were querying group membership numerous times within a login script... Let's face it, for *this* type of activity (ie conditional logic based on group membership), it's unwieldly. 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 weeks sponsor Emergent Online Thinssentials Utilities Using the latest software, hardware, networking technologies, proven technical expertise, proprietary software and best practices, EOL provides custom-tailored solutions for each client?s mission and specific goals. http://www.go-eol.com ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm