I am new to Python and I am trying to make a script that connects to a remote windows machine and execute commands there and test ports connectivity.
Here is the cod
I have personally found pywinrm library to be very effective. However, it does require some commands to be run on the machine and some other setup before it will work.