Automated remote desktop session time limit

Ajelvani

Member
Aug 5, 2015
95
0
0
Right now im running windows 10 enterprise on a vm using hyper-v. On this vm, i want a user to be able to connect with a code or password and then be automatically disconnected after 2 hours. I would like the 2 hour timer to run even when the users not connected. Also, i want a new code or password to be generated and set after the 2 hour time limit is up. How exactly would i do this?
 
Feb 25, 2011
16,969
1,600
126
I think you can set up time limits like that in parental controls. I _know_ you can do it using active directory group policies, but that's probably more complicated.

Not sure about the auto-new-password-generation thing. Probably a script kicked off by a scheduled task - when the user logs in (or logs out?), it automatically generates them a new password.

There's probably other ways to do that - just off the top of my head, you know?
 

Ajelvani

Member
Aug 5, 2015
95
0
0
I would really appreciate if someone could help me as this would require programming maybe an application that would run in the backrground. I dont really know how to program so someone help. Thanks
 

Ajelvani

Member
Aug 5, 2015
95
0
0
Well i dont want a client to reconnect again. Its a paid service and the password needs to change everytime a user connects
 
Feb 25, 2011
16,969
1,600
126
Oh, that jogged my memory - this is that paid VM access thing you're working on.

Set up an Active Directory environment and use group policy. Each paying customer can get their own user account, password, etc., with time limits to access. You don't need to program anything, but there's still some learning curve.

Good luck.
 

andyinv

Member
Sep 14, 2015
32
0
0
Another way to do it - if some trappable event happens when the user gets booted off at 2hrs (event log?), then set a powershell script to attach to that event and change the password.