Skip to content

Commit f1a81b3

Browse files
author
joegajeckyj
authored
Create run.py
1 parent 2b02292 commit f1a81b3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: run.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env python
2+
3+
import winrm
4+
5+
ps_script = open('/mem.ps1','r').read()
6+
s = winrm.Session('10.105.13.20', auth=('JRG.LAB\administrator', 'dbghYp9e3bR'))
7+
r = s.run_ps(ps_script)
8+
print r.status_code
9+
print r.std_out
10+
print r.std_err

0 commit comments

Comments
 (0)