Metadata-Version: 2.1
Name: psremoter
Version: 1.0.2
Summary: Powershell remote client tool for Python
Author-email: Daniel Mandelblat <danielmande@gmail.com>
Project-URL: Homepage, https://github.com/danielMandelblat/psremoter
Keywords: Powershell,remote,client,commands,Windows
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Provides-Extra: dev

# 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.connector import Execute
exec= Execute(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
````
