?
Solved

using gpo to set idle time

Posted on 2004-08-27
4
Medium Priority
?
129 Views
Last Modified: 2010-04-12
I need to increase idle time for our remote destop users. This will apply for the entire domain consisting of 52 servers. Is there an easy way to push out this change w/o hitting each server? We are running windows 2000 server (I hear win2k3 solves this issue)...
Thanks
0
Comment
Question by:gaskew
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 18

Expert Comment

by:exx1976
ID: 11918557
Where do you have this setting set, on the server side, or on the user side?  We set this property on the user side via VBScript..  MUCH easier to go back and make changes, as I'm sure you are about to see...
0
 

Author Comment

by:gaskew
ID: 11918895
an chance of seeing or being referred to a sample of this script?
0
 
LVL 18

Accepted Solution

by:
exx1976 earned 1600 total points
ID: 11919460
Sure, no problem.  The first thing you need to do is download a copy of TSCMD from this site:  http://www.systemtools.com/free_frame.htm

Then, here's the code that I use...


Set ws = WScript.CreateObject("wscript.shell")
Set oU = GetObject ("LDAP://OU=<OU>,DC=<DOMAIN>,DC=<TLD>")
For Each user In oU
      ws.Run "c:\ts\tscmd <DOMAIN CONTROLLER> " & user.SamAccountName & " TerminalServerProfilePath <PATH TO PROFILE>"
      WScript.Sleep 5000
                ws.Run "c:\ts\tscmd <DOMAIN CONTROLLER> " & user.SamAccountName & " TimeoutDisconnect 120"      
      WScript.Sleep 5000
      ws.Run "c:\ts\tscmd <DOMAIN CONTROLLER> " & user.SamAccountName & " ShadowingSettings 2"
                WScript.Sleep 5000
      ws.Run "c:\ts\tscmd <DOMAIN CONTROLLER> " & user.SamAccountName & " TimeoutIdle 30"
                WScript.Sleep 5000
Next

Anywhere you see capital letters inside <> you need to change that info to match your environment, and remove the <>.

There is a text file that comes with the download that will explain the settings to you.

HTH,
exx
0
 

Author Comment

by:gaskew
ID: 11920705
Looks great! Thanks
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

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…
The top devops trends for 2017 are focused on improved deployment frequency, decreased lead time for change and decreased MTTR.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

770 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