Solved

using gpo to set idle time

Posted on 2004-08-27
4
121 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

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…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

22 Experts available now in Live!

Get 1:1 Help Now