Skip to main content

Powershell remote client tool for Python

Project description

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:
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psremoter-1.0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psremoter-1.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file psremoter-1.0.2.tar.gz.

File metadata

  • Download URL: psremoter-1.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for psremoter-1.0.2.tar.gz
Algorithm Hash digest
SHA256 309a4a90a2fd31c583f23b39f13c2063b556045619cc49b232d77bff1a12aae7
MD5 1a8b3d6aa185c1587fc7f73e779244e3
BLAKE2b-256 9b83e8a34def8d8eafe88fbcd077b61b3a0bb255f59c16a8d7520e99cf24c5cb

See more details on using hashes here.

File details

Details for the file psremoter-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: psremoter-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for psremoter-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d42c0a356e909b8d7f0d9c58ac4e626bfc982b3dbe4a2669e64d363795a5be32
MD5 86a37466fb282e1627b4e86b0dfe6714
BLAKE2b-256 01483c77ffa88089189167642663e00b9a38121866e36f321ffbed42dc2ea8f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page