Perfectly valid, Rick - especially if cmd scripting is what people know best. Ultimately, doing stuff like this comes down to how best you can establish the info you want to process, and how best it matches or develops the skills you have. And dumping users out of AD using net commands is valid and quick, and using tscmd is easy. So no need to be sorry - in some ways I'm not as proficient using cmd scripts as with other scripting languages, because I tend to do stuff in Kix or vbscript - which means when I write cmd stuff I have to go scurrying around reading help files :-( Neil > -----Original Message----- > From: thin-bounce@xxxxxxxxxxxxx > [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Rick Mack > Sent: 19 October 2005 12:55 > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: Home directory and Profile Script > > Hi, > > Of course at the other end of the scale, if you're new to > scripting and just want to get the job done, you can generate > a domain (or group) user list using net user /domain or net > group (on a DC), eg. > > for /f "tokens=1,2,3" %i in ('net user /domain') do @echo %i > >> users.txt & @echo %j >> users.txt & @echo %k >> users.txt. > > Edit the unwanted accounts out of users.txt and you've got a > user list for further scripting. > > eg using tscmd > > for /f %i in (users.txt) do tscmd %your_DC% %i > terminalserverhomepath \\server\users\%i > <file://\\server\users\%i> & tscmd %your_DC% %i > terminalserverprofilepath \\server\profiles\%i > <file://\\server\profiles\%i> > > That's 2 lines of script ;-) > > Sorry guys, couldn't resist. > > regards, > > Rick ***************************************************************************** This email 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 email 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 Shop Direct Group Limited or its subsidiaries. Please note that email communications may be monitored. The registered office of Littlewoods Shop Direct Group Limited is 100 Old Hall Street Liverpool L70 1AB registered number 5059352 ***************************************************************************** This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com ******************************************************** This Weeks Sponsor: Cesura, Inc. Know about Citrix end-user slowdowns before they know. Know the probable cause, immediately. Know it all now with this free white paper. http://www.cesurasolutions.com/landing/WPBCForCitrix.htm?mc=WETBCC ******************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm ThinWiki community - Excellent SBC Search Capabilities! http://www.thinwiki.com *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm