Package: ptwinrm
APython,prompt_toolkitandpywinrmbased WinRM console:Installation$pipinstallptwinrmRequirementsPython>= 2.6docoptpywinrmprompt_toolkitUsageBefore connecting to the windows machine, make sure the winrm service is running and the firewall
is opened for winrm connections. On my windows machine I had to do the following on the windows
command line:# make firewall respect our wishes
C:\>netsh advfirewall add rule name="WinRM-HTTP" dir=in localport=5985 protocol=TCP action=allow
C:\>netsh advfirewall add rule name="WinRM-HTTPS" dir=in localport=5986 protocol=TCP action=allow

# configure winrm
C:\>winrm quickconfig

# Allow non encrypted (for pywinrm)
C:\>winrm set winrm/config/servive '@{AllowUnencrypted="true"}'Then you can try to connect from another machine (linux, OSX, windows):$ptwinrm--user="acme\roadrunner"--run="ver"acme-rr.compassword:********MicrosoftWindows[Version6.1.7601]$ptwinrm--user="acme\roadrunner"acme-rr.compassword:********C:\Users\roadrunner>dirVolumeindriveCisSystemVolumeSerialNumberis8C20-216FDirectoryofC:\Users\roadrunner20/04/201709:29<DIR>.20/04/201709:29<DIR>..05/07/201710:58<DIR>Contacts05/07/201710:58<DIR>Desktop03/05/201611:10<DIR>Documents06/07/201711:04<DIR>Downloads05/07/201710:58<DIR>Favorites05/07/201710:58<DIR>Links28/06/201708:18<DIR>Mails05/07/201710:58<DIR>Music05/07/201710:58<DIR>Pictures05/07/201710:58<DIR>SavedGames05/07/201710:58<DIR>Searches06/03/201315:09<DIR>Tracing05/07/201710:58<DIR>VideosC:\Users\roadrunner>ipconfig/allWindowsIPConfigurationHostName............:ACME-RRPrimaryDnsSuffix.......:acme.comNodeType............:HybridIPRoutingEnabled........:NoWINSProxyEnabled........:NoDNSSuffixSearchList......:acme.comEthernetadapterLocalAreaConnection2:MediaState...........:MediadisconnectedConnection-specificDNSSuffix.:Description...........:Intel(R)GigabitCTDesktopAdapterPhysicalAddress.........:55-44-33-22-11-00DHCPEnabled...........:NoAutoconfigurationEnabled....:YesEthernetadapterLocalAreaConnection:Connection-specificDNSSuffix.:acme.comDescription...........:Acme(R)GigabitNetworkConnectionPhysicalAddress.........:00-11-22-33-44-55DHCPEnabled...........:YesAutoconfigurationEnabled....:YesIPv4Address...........:199.199.1.172(Preferred)SubnetMask...........:255.255.254.0LeaseObtained..........:quarta-feira5julho201710:41:49LeaseExpires..........:quarta-feira3janeiro201822:42:05DefaultGateway.........:199.199.1.1DHCPServer...........:198.198.60.11DNSServers...........:198.198.208.9198.198.209.9NetBIOSoverTcpip........:EnabledTunneladapterisatap.acme.com:MediaState...........:MediadisconnectedConnection-specificDNSSuffix.:acme.comDescription...........:MicrosoftISATAPAdapterPhysicalAddress.........:00-00-00-00-00-00-00-E0DHCPEnabled...........:NoAutoconfigurationEnabled....:YesTunneladapterLocalAreaConnection*11:MediaState...........:MediadisconnectedConnection-specificDNSSuffix.:Description...........:TeredoTunnelingPseudo-InterfacePhysicalAddress.........:00-00-00-00-00-00-00-E0DHCPEnabled...........:NoAutoconfigurationEnabled....:YesTunneladapterisatap.{FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF}:MediaState...........:MediadisconnectedConnection-specificDNSSuffix.:Description...........:MicrosoftISATAPAdapter#4PhysicalAddress.........:00-00-00-00-00-00-00-E0DHCPEnabled...........:NoAutoconfigurationEnabled....:YesC:\Users\roadrunner>That’s all folks!