Hello everyone,
I been looking for a script that will kill the Idle session in the vCenter for a long time, but i didn't find anything related to PowerCLI.
I manage to write a script that kill all session beside my own session, but this not answer my needs to kill only the Idle sessions.
There is any written script that could do such a thing?
Thanks,
Roey
Have a look at the blog post named http://www.amikkelsen.com/?p=384Powershell – List all vCenter client sessions & disconnect if inactive
You will of course have to define when you consider a session as "idle". After 5 minutes of inactivity, 10 minutes...
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Have a look at the blog post named http://www.amikkelsen.com/?p=384Powershell – List all vCenter client sessions & disconnect if inactive
You will of course have to define when you consider a session as "idle". After 5 minutes of inactivity, 10 minutes...
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi LucD,
Thanks alot! This script do the trick!
Roey