Solved

Global terminal server session properties change for all AD users

Posted on 2006-06-28
2
175 Views
Last Modified: 2010-04-13
I have over 200 users in an active directory domain.  I need to set the timeout properties on the session tab for each user in the AD so that all users are set the same.  How do I do that in a global step, instead of having to click on each user and make the change one at a time?
0
Comment
Question by:murryc
2 Comments
 
LVL 84

Accepted Solution

by:
oBdA earned 250 total points
ID: 17004987
Get TsCmd.exe from http://www.somarsoft.com/ (in the Free Tools section).
Create a text file with the user names (one name per line), and save the following script as tstimeout.cmd (or whatever.cmd), adjust the settings at the beginning.
Try it with a list of test users first.

@echo off
setlocal
:: *** The text file with the user names to be processed:
set UserFile=
:: *** The name of the DC:
set DC=
:: *** The timeout settings:
set TimeoutConnection=
set TimeoutDisconnect=
set TimeoutIdle=

for /f %%a in ('type "%UserFile%"') do (
  tscmd %DC% "%%a" TimeoutConnection %TimeoutConnection%
  tscmd %DC% "%%a" TimeoutDisconnect %TimeoutDisconnect%
  tscmd %DC% "%%a" TimeoutIdle %TimeoutIdle%
)
0
 

Author Comment

by:murryc
ID: 17005570
Perfect!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question