[THIN] Re: Scripts sight with Windows NT 4.0 scripts for User Manager for Domains

  • From: "Mack, Rick" <Rick.Mack@xxxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Sun, 25 Apr 2004 19:54:00 +1000

Hi,

If you want it simple....

Download tscmd.exe,

Generate a list of domain users with:

For /f "tokens=3D1,2,3 skip=3D6" %i in ('net user /domain') do @echo %i =
>>
users.txt & @echo %j >> users.txt & @echo %k >> users.txt

Edit users.txt to get rid of service accounts etc, then..

For /f %i in (users.txt) do tscmd \\your_domain-controller %i
TerminalServerHomeDir \\<server name>\home\%i

It's easy enough to do in VB as well, but 2 command lines is lazier ;-)

Regards,

Rick

Ulrich Mack
Volante Systems
18 Heussler Terrace, Milton 4064=20
Queensland, Australia
tel +61 7 32467704
rmack@xxxxxxxxxxxxxx


-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On
Behalf Of Jensen, Jay
Sent: Saturday, 24 April 2004 7:07 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Scripts sight with Windows NT 4.0 scripts for User
Manager for Domains


Hi gang,=20

Can anyone point me to a site where I can see how to write a script that
changes the Terminal Server Home Directory path for all users?  We have
a situation we want to change the path from \\<server name>\%username%
to \\<server name>\home\%username% =20

This would be too cumbersome to do it manually so I am looking for a
script to do this and asking you all if anyone know of a good place to
look for something like this.=20

Thanks in Advance.=20
Jay

********************************************************
This week's sponsor - Neoware Thin Clients
Neoware makes computing open, secure, reliable,=20
affordable, manageable and obsolete-free.=20
Starting at $199!=20
http://www.neoware.com=20
**********************************************************
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
********************************************************
This week's sponsor - Neoware Thin Clients
Neoware makes computing open, secure, reliable, 
affordable, manageable and obsolete-free. 
Starting at $199! 
http://www.neoware.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

Other related posts: