VMware Cloud Community
Roey1206
Contributor
Contributor
Jump to solution

Kill Idle Session with PowerCLI

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

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
Roey1206
Contributor
Contributor
Jump to solution

Hi LucD,

Thanks alot! This script do the trick!

Roey

0 Kudos