Hello,

I need to update about 5000 user id's in a Windows 2000
Active Directory with Terminal Server settings.
These settings are:
Terminal Server Profile Path
Terminal Server Home Directory
Terminal Server Home Drive
Allow logon to terminal server
Create the Home Directory and set the appropriate
permissions. I have found several references to this on
the script site but nothing complete. We would like to be
able to feed the script a list of names to complete. I am
very new to scripting so if you have a document or a
sample script I could look at that would be very helpful.

Thanks Randy Becker

Re: VBScript for updating Terminal Server settings in AD by Torgeir

Torgeir
Thu Oct 23 03:49:58 CDT 2003

Randy Becker wrote:

>
> I need to update about 5000 user id's in a Windows 2000
> Active Directory with Terminal Server settings.
> These settings are:
> Terminal Server Profile Path
> Terminal Server Home Directory
> Terminal Server Home Drive
> Allow logon to terminal server

Hi

If you don't have a Win2k3 server, MS does not have any built in to set the TS
properties from a script.

Two freeware dll's are available that enables you to do this from vbscript,
Wts_admin.dll and WTSCOM.dll (you need to register them on the computer running

the script with regsvr32.exe)::

http://groups.google.com/groups?selm=3E4A9464.DD8B201B%40hydro.com



--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Re: VBScript for updating Terminal Server settings in AD by maxv

maxv
Tue Nov 18 09:36:53 CST 2003

On Win2k/XP or NT you must use the WTS APIs.

On win2k3 you have an user object extension that exposes the WTS APIs to
the script world.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/te
rmserv/iadstsuserex.asp

Sincerely,
Max Vaughn [MS]
Microsoft Developer Support


Disclaimer: This posting is provided "AS IS" with no warranties, and
confers no rights. You assume all risk for your use.