My app uses tscmd and generates a .cmd file with all the tscmd commands = you need to achieve the changes you want. It doesn't handle the initial exporting though - I've only ever needed to make bulk changes in W2K = (NT4 isn't a problem since you can do the same thing in user manager) and a = REAL man has the self-belief to pretend any cockups were intentional ;-) -----Original Message----- From: Jeff Durbin [mailto:techlists@xxxxxxxxxxxxx] Sent: 12 May 2004 20:29 To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: NT 4 global profile change I posted this a few weeks ago. TSCMD can query values as well as set = them, so it can be used initially to generate a list of current users and = their settings which could then be used in the event of a problem to revert to those original settings: <----------------- SNIP ------------------------> There are a few ways to do it. You can't directly get to the TS = properties via VBScript in NT4 or 2000, so you have to use the Windows API. That requires a COM object created in anotheer language, like Visual Basic, = that can be called from the scripting language. Thomas Eck has written about this: Practical Usage of ADSI: Using COM Objects to Manage WTS Profile Paths, = Part 2 http://www.winnetmag.com/WindowsScripting/Article/ArticleID/20509/20509.h= tml This method is preferred if you want to apply some logic to the = process, like changing properties for users in a particular OU, or only users = that belong to certain groups.=20 Because you want to make the same change to all users, there's an = easier way to do it. There's a program you can download from The Thin at: http://thethin.net/tsdownload.cfm It's called TSCMD, and allows you to set the TS properties from a = command line. For example, to set the drive, you'd go: Tscmd server username TerminalServerHomeDirDrive H: Tscmd server username TerminalServerHomeDir \\server\home\username If you use the 2nd method (TSCMD), your next question will be how to = call the program for each user. You'll need a text file that has all your usernames listed in it, each one on it's own line, like this: User1 User2 User3 Put TSCMD and the text file in the same directory. Let's say the text = file is called userlist.txt. Open a command prompt and change to that folder. Issue these commands: For /f %x in (userlist.txt) do tscmd server %x = TerminalServerHomeDirDrive H: For /f %x in (userlist.txt) do tscmd server %x TerminalServerHomeDir \\server\home\%x The For-in-do loop reads userlist.txt, and issues the commands after = the 'do' part for each line in the text file. During each execution, the %x variable is set to the username. Regards, Jeff Durbin <----------------- SNIP ------------------------> > -----Original Message----- > From: thin-bounce@xxxxxxxxxxxxx=20 > [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Jim Kenzig=20 > http://thin.net > Sent: Thursday, 13 May 2004 3:11 a.m. > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: NT 4 global profile change >=20 > That object is at: >=20 > http://cwashington.netreach.net/main/tools/default.asp?topic=3Dn-z > JK > -----Original Message----- > From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On > Behalf Of Chris Lynch > Sent: Wednesday, May 12, 2004 10:56 AM > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: NT 4 global profile change >=20 >=20 > Or just look for WTS_ADMIN.DLL on Google. That will give you=20 > the ability to create a script to mass change all of your=20 > users. If you need assistance with creating the script, just=20 > let me know off list. >=20 > Chris > ******************************************************** This Week's Sponsor - Tarantella Secure Global Desktop Tarantella Secure Global Desktop Terminal Server Edition Free Terminal Service Edition software with 2 years maintenance. http://www.tarantella.com/ttba ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or=20 set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm Gallai'r e-bost yma gynnwys gwybodaeth gyfrinachol a/neu ddeunydd = hawlfraint. Os ydych chi'n meddwl eich bod wedi derbyn yr e-bost yma = drwy gamgymeriad rydym yn ymddiheuro am hyn; peidiwch os gwelwch yn dda = =E2 datgelu, anfon ymlaen, printio, cop=EFo na dosbarthu gwybodaeth yn = yr e-bost yma na gweithredu mewn unrhyw fodd drwy ddibynnu ar ei = gynnwys: gwaherddir gwneud hynny'n gyfan gwbl a gallai fod yn = anghyfreithlon. Rhowch wybod i'r anfonwr fod y neges yma wedi mynd ar = goll cyn ei dileu. =20 Mae unrhyw safbwynt neu farn a gyflwynir yn eiddo i'r awdur ac nid ydynt = o anghenraid yn cynrychioli safbwynt neu farn Ymddiriedolaeth GIG = Gogledd Orllewin Cymru. Gallai cynnwys yr e-bost yma gael ei ddatgelu i'r cyhoedd o dan G=F4d = Bod yn Agored y GIG neu Ddeddf Rhyddid Gwybodaeth 2000. Nid oes modd = gwarantu cyfrinachedd y neges ac unrhyw ateb.=20 Bydd y neges yma ac unrhyw ffeiliau cysylltiedig wedi cael eu gwirio gan = feddalwedd canfod firws cyn eu trosglwyddo. Ond rhaid i'r sawl sy'n = derbyn wirio rhag firws ei hun cyn agor unrhyw ymgysylltiad. Nid yw'r = Ymddiriedolaeth yn derbyn unrhyw gyfrifoldeb am unrhyw golled neu niwed = a allai gael ei achosi gan firws meddalwedd. This e-mail may contain confidential information and/or copyright = material. If you believe that you have received this e-mail in error = please accept our apologies; please do not disclose, forward, print, = copy or distribute information in this e-mail or take any action in = reliance on its contents: to do so is strictly prohibited and may be = unlawful. Please inform the sender that this message has gone astray = before deleting it. Any views or opinions presented are to be understood as those of the = author and do not necessarily represent those of the North West Wales = NHS Trust. The contents of this e-mail may be subject to public disclosure under = the NHS Code of Openness or the Freedom of Information Act 2000. The = confidentiality of the message and any reply cannot be guaranteed. This message and any attached files will have been checked with virus = detection software before transmission. However, recipients must carry = out their own virus checks before opening any attachment. The Trust = accepts no liability for any loss or damage, which may be caused by = software viruses. ******************************************************** This Week's Sponsor - Tarantella Secure Global Desktop Tarantella Secure Global Desktop Terminal Server Edition Free Terminal Service Edition software with 2 years maintenance. http://www.tarantella.com/ttba ********************************************************** 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