'RDP to Server using python script and run commands

I'm looking to use RDP port and login into Windows servers using any python libraries, but I cannot make a successful login, can anyone please suggest the best library to use and any sample code snippet.

thankyou!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source