Solved

using gpo to set idle time

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Login Vbscript not modifing registry settings as a non domain administrator 3 116
win2k service packs 5 664
Install Window 2012 Domain on 9 137
Upgrade dos 4.00.1111 11 32
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…
This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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