Solved

Global terminal server session properties change for all AD users

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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…
Facing problems with you memory card? Cannot access your memory card? All stored data, images, videos are lost? If these are your questions...than this small article might help you out in retrieving your lost or inaccessible data.
A short film showing how OnPage and Connectwise integration works.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

943 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

6 Experts available now in Live!

Get 1:1 Help Now