Solved

using gpo to set idle time

Posted on 2004-08-27
4
122 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
  • 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 400 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

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…
With more and more people tethered to the internet, advertisers can reach you in new and creative ways. Push notifications on your smartphone, customized advertisements based on your previous searches, and email inboxes filled with promotional pitch…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

930 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

12 Experts available now in Live!

Get 1:1 Help Now