How to connect to a remote Windows machine to execute commands using python?

后端 未结 11 2094
青春惊慌失措
青春惊慌失措 2020-11-29 20:20

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

11条回答
  •  情歌与酒
    2020-11-29 21:17

    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.

提交回复
热议问题