Python Forum
How to parse the result of winrm.Response? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to parse the result of winrm.Response? (/thread-37783.html)



How to parse the result of winrm.Response? - ilknurg - Jul-21-2022

I have a code script with pywinrm. I connect a remote machine and run powershell.
The result type is class 'winrm.Response', how can i parse it?

My result is something like that:

<Response code 0, out "b'\r\n\r\n__GENUS '", err "b'#< CLIXML\r\n<Objs Ver'">