?
Solved

Global terminal server session properties change for all AD users

Posted on 2006-06-28
2
Medium Priority
?
184 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 85

Accepted Solution

by:
oBdA earned 1000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

807 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