Metadata-Version: 2.1
Name: psremoter
Version: 2.0.2
Summary: Powershell remote client tool for Python
Home-page: https://github.com/danielMandelblat/psremoter
Author: Daniel Mandelblat
Author-email: danielmande@gmail.com
Project-URL: Bug Tracker, https://github.com/danielMandelblat/psremoter
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.txt

# PSRemoteExecuter
## _Suitable only for Windows platforms_

This package will help you to execute remote PowerSell script on other Windows platforms in your domain. 

## Features

- Execute local PowerShell scripts
- Execute remote PowerShell scripts (Using invoke-command PS command)


##Using
install PSRemoter using pip:<br>
pip install psremoter

powershell=False (default) execute as batch script
```
from psremoter import psremoter
exec= psremoter(hostname="hostname", username="username" , password='password', domain='myDomain', command="hostname", powershell=True)

#Execute command on remote host
exec.remote_execution()

#Read execution status
print(exec.status) #True

#Read return code
print(exec.return_code) #0 

#Read console output
print(exec.output) #DnsServer01
````
