Solved

Global terminal server session properties change for all AD users

Posted on 2006-06-28
2
170 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 83

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now