{ "info": { "author": "Tiago Coutinho", "author_email": "coutinhotiago@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "ptwinrm\n=======\n\nA Python_, prompt_toolkit_ and pywinrm_ based WinRM console:\n\n.. image:: https://asciinema.org/a/C5wHOTBWELzNRbWFlGpuZUBUK.png\n :alt: asciinema cast\n :target: https://asciinema.org/a/C5wHOTBWELzNRbWFlGpuZUBUK?autoplay=1&speed=2&loop=1&size=medium&theme=asciinema\n\nInstallation\n------------\n\n.. code-block:: bash\n\n $ pip install ptwinrm\n\n\nRequirements\n------------\n\n- Python_ >= 2.6\n- docopt\n- pywinrm\n- prompt_toolkit\n\nUsage\n-----\n\nBefore connecting to the windows machine, make sure the winrm service is running and the firewall\nis opened for winrm connections. On my windows machine I had to do the following on the windows\ncommand line::\n\n # make firewall respect our wishes\n C:\\>netsh advfirewall add rule name=\"WinRM-HTTP\" dir=in localport=5985 protocol=TCP action=allow\n C:\\>netsh advfirewall add rule name=\"WinRM-HTTPS\" dir=in localport=5986 protocol=TCP action=allow\n\n # configure winrm\n C:\\>winrm quickconfig\n\n # Allow non encrypted (for pywinrm)\n C:\\>winrm set winrm/config/servive '@{AllowUnencrypted=\"true\"}'\n\nThen you can try to connect from another machine (linux, OSX, windows):\n\n.. code-block:: bash\n\n $ ptwinrm --user=\"acme\\roadrunner\" --run=\"ver\" acme-rr.com\n password: ********\n\n Microsoft Windows [Version 6.1.7601]\n\n $ ptwinrm --user=\"acme\\roadrunner\" acme-rr.com\n password: ********\n\n C:\\Users\\roadrunner>dir\n Volume in drive C is System\n Volume Serial Number is 8C20-216F\n\n Directory of C:\\Users\\roadrunner\n\n 20/04/2017 09:29