Hi Neil, I think you nailed it pretty well with the comment "how best it ...develops the skills you have". Good scripting skills are hugely useful for an administrator and well worth developing. A lot of people's scripting skills are so rudimentary it's scarey. Watching your discussion was fun. regards, Rick Ulrich Mack Volante Systems Level 2, 30 Little Cribb Street Coronation Drive Office Park Milton Qld 4064 tel: +61 7 32431847 fax: +61 7 32431992 rick.mack@xxxxxxxxxxxxxx ________________________________ From: thin-bounce@xxxxxxxxxxxxx on behalf of Braebaum, Neil Sent: Wed 19/10/2005 10:06 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Home directory and Profile Script 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=TBCC ******************************************************** 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 ##################################################################################### This e-mail, including all attachments, may be confidential or privileged. Confidentiality or privilege is not waived or lost because this e-mail has been sent to you in error. If you are not the intended recipient any use, disclosure or copying of this e-mail is prohibited. If you have received it in error please notify the sender immediately by reply e-mail and destroy all copies of this e-mail and any attachments. All liability for direct and indirect loss arising from this e-mail and any attachments is hereby disclaimed to the extent permitted by law. #####################################################################################