Then you will have to kill the browser session as well
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
------------------------------
Original Message:
Sent: Jul 25, 2024 10:36 AM
From: nsousaarlington
Subject: Terminate vCenter Session Script Flaw
Hi Luc, no I kept the browser state intact. My goal is to forcibly terminate a malicious session.
Original Message:
Sent: Jul 25, 2024 10:28 AM
From: LucD
Subject: Terminate vCenter Session Script Flaw
Did you stop/start the browser, or at least clear the cache, after the TerminateSession call?
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Jul 25, 2024 10:22 AM
From: nsousaarlington
Subject: Terminate vCenter Session Script Flaw
Hello, the terminate user script from here has a limitation: https://blog.vmpros.nl/2010/10/02/vmware-disconnect-idling-vcenter-sessions-with-powercli/
The script does run, but if you refresh the browser for the session that should've been terminated, the session logs back in without needing to authenticate again. Is there a way to forcibly close the session to work around this?