https://github.com/mkinney/pypsrp_example
using python library pypsrp to connect to winrm
https://github.com/mkinney/pypsrp_example
example python winrm
Last synced: 4 months ago
JSON representation
using python library pypsrp to connect to winrm
- Host: GitHub
- URL: https://github.com/mkinney/pypsrp_example
- Owner: mkinney
- Created: 2020-03-03T15:29:48.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-24T20:48:55.000Z (almost 6 years ago)
- Last Synced: 2024-10-05T17:22:02.238Z (over 1 year ago)
- Topics: example, python, winrm
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
# Simple repo to use pywinrm to talk with Windows instance
Create/use python virtual environment:
virtualenv -p python3 venv
source venv/bin/activate
Install python libs:
pip install pypsrp
Optionally, install direnv and run:
direnv allow
Assuming you have VirtualBox or VMware Fusion and/or Workstation installed,
optionally, install mikemech:
pip install mikemech
mech init StefanScherer/windows_10
mech up
Try out example:
./example_dir.py 192.168.3.135
./ps.py 192.168.3.135 'Write-Output hello'
./ps_using_winrs.py 192.168.3.135 "powershell Write-Host hello"