Torgeir
Tue Jul 19 04:00:03 CDT 2005
Lost... wrote:
> HI all:
>
> Does anyone have any code that will allow me to change a users terminal
> server settings in AD? I used to use TSCMD.exe on W2K terminal servers but
> now its has stopped working and is giving an error 1317 cannot set user
> settings. The script that I was using before without problems no longer
> works and I am looking for something new! any suggestions would be great!
Hi,
If you can run your script on a Windows 2003 Server:
http://www.microsoft.com/technet/scriptcenter/scripts/ts/default.mspx
and
http://msdn.microsoft.com/library/en-us/termserv/termserv/iadstsuserex.asp
If running the script on a Windows 2003 Server is not an option, a 3rd
party free DLL that can help you here is EOLWTSCOM.dll:
http://groups.google.co.uk/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/default.mspx