SAM2009
asked on
PowerShell script to get all users sessions connected in Windows terminal servers
Hi,
I'm trying to do a PowerShell script to get all users sessions connected in Windows terminal servers for 1 week.
So basically I will do schedule job which will run every 1h and takes users session (user name or login) and happen info in a csv file.
How can I do that?
I'm trying to do a PowerShell script to get all users sessions connected in Windows terminal servers for 1 week.
So basically I will do schedule job which will run every 1h and takes users session (user name or login) and happen info in a csv file.
How can I do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many thanks!
It's not PowerShell, but can be run in a PS script or just a batch script in the task scheduler.