Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 503 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 503 Bytes

PyPS

Simple wrapper around the System.Management.Automation.dll for python.

Example Usage:

The following code prints the output of "get-process | select-object -property name" powershell command without leaving traces in the log files. (Optional)

from PyPS import PyPs
PyPs(True).run_ps('get-process | select-object -property name')

P.s. This script requires pythonnet module to be installed. You can install it by typing:

pip install pythonnet

or

pip install --pre pythonnet