PowerCLI

 View Only
  • 1.  Terminate vCenter Session Script Flaw

    Posted Jul 25, 2024 10:22 AM

    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?



  • 2.  RE: Terminate vCenter Session Script Flaw

    Posted Jul 25, 2024 10:29 AM

    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


    ------------------------------



  • 3.  RE: Terminate vCenter Session Script Flaw

    Posted Jul 25, 2024 10:37 AM

    Hi Luc, no I kept the browser state intact. My goal is to forcibly terminate a malicious session.




  • 4.  RE: Terminate vCenter Session Script Flaw

    Posted Jul 25, 2024 12:30 PM

    Then you will have to kill the browser session as well



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------