[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

using gpo to set idle time

Posted on 2004-08-27
4
Medium Priority
?
134 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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…
A walk-through example of how to obtain and apply new DID phone numbers to your cloud PBX enabled users that are configured in Office 365. Whether you have 1, 10 or 100+ users in your tenant, it's quite easy to get them phone-enabled and making/rece…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

650 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