Script TS Environment checkboxes in AD?

  • Thread starter Thread starter Carl Olsson
  • Start date Start date
C

Carl Olsson

Hi,

I'm running Terminal Server on W2K servers.

If I open up Users and Computers in AD, doubleclick a user and select
the tab Environment, I can see some checkboxes related to Terminal
Server lurking.

I want to update these for some hundred users, namely set or clear the
three checkboxes 'Connect client drives at logon', 'Connect client
printers at logon' and 'Default to main client printer' in the
Environment tab in the users properties in AD.

I currently use VBscript and wts_admin.dll to update the other TS
settings I need but I'm stuck on these checkboxes.

Ideas, someone?
Carl
 
Unfortunately the W2K version is limited in regards of scripting
capabilites, in W2K3 they've enhanced it a lot, so I don't think it's
possible to do what you need...

Some of the enhancement is:
- Windows Management Interface Provider
A full Windows Management Instrumentation (WMI) provider allows for a
scripted configuration of Terminal Services settings. A number of WMI
aliases are included to provide a simple front end for frequently used WMI
tasks.

- Active Directory Service Interfaces
An Active Directory Service® Interface (ADSI) provider gives programmatic
access to per-user, Terminal Services profile settings such as Home
Directory, Remote Control permissions and others.

You can find more info at:
http://download.microsoft.com/downl...-9f9e-9accef44a743/TerminalServerOverview.doc.

According to this link, it will require W2K3 to do what you need:
http://www.microsoft.com/technet/community/scriptcenter/user/scrug53.mspx

Regards,
/Jimmy
 
I'll check out newfawn, they might be better than the tool I found
yesterday: tscmd.exe from SystemTools.com. It does what I need but is
a tad slow.
Thanks again!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top