Link to home
Start Free TrialLog in
Avatar of jshao825
jshao825

asked on

vbscript to logoff remote desktop after session is login for 2 hours

is there a way using vbscript  to logoff remote desktop after session is login for 2 hours ?
Avatar of Bill_Fleury
Bill_Fleury
Flag of Canada image

I don't know about vbscript, but you can do this with Group Policy.

Hit start --> run --> GPEDIT.MSC

Navigate to:

Computer Configuration --> Administrative Templates --> Terminal Services --> Sessions

All of the options for time limits on Remote desktop are listed there.  You can also set the session limits in Active Directory if this computer is a member of an AD domain.
ASKER CERTIFIED SOLUTION
Avatar of Ron Malmstead
Ron Malmstead
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial