how do you close a Pywinrm session? how do you close a Pywinrm session? powershell powershell

how do you close a Pywinrm session?


Actually, I had a quick look at the code of wirm (as of 20201117)and the "Session" is not an actual session in the traditional sense, but only an object holding the creds to authenticate.

Each time run_cmd or run_ps is invoked, a session in opened on the target and closed on completion of the task. So there's nothing to close, really.