[THIN] Re: Home directory and Profile Script

  • From: "Braebaum, Neil" <Neil.Braebaum@xxxxxxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Thu, 20 Oct 2005 11:53:14 +0100

You could actually do it with one line, using LDIFDE - although you'll
only get the raw blob that is userParameters - but this wouldn't be
exported if there was nothing set.

And the readme for tscmd says it does output the value set, if you don't
include a new value.

Neil 

> -----Original Message-----
> From: thin-bounce@xxxxxxxxxxxxx 
> [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Andrew Wood
> Sent: 20 October 2005 11:32
> To: thin@xxxxxxxxxxxxx
> Subject: [THIN] Re: Home directory and Profile Script
> 
> Although, looking at this again... tscmd can only set the 
> value - it doesn't report on it (which is what was asked for).
>  
> Still neat tho' - and it does what it does very efficiently ;)
> 
>   _____  
> 
> 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 <file://\\server\users\%i> 
> \\server\users\%i & tscmd %your_DC% %i 
> terminalserverprofilepath  <file://\\server\profiles\%i> 
> \\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

Other related posts: