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

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-2.0.0.tar.gz (3.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for psremoter-2.0.0.tar.gz
Algorithm Hash digest
SHA256 2d072bf482db8d95bd9951e3b967ea9d2c56b8cf59a5aeafbde9175baeaf2a0a
MD5 ceff8079ca164b7a889a04c6d6233115
BLAKE2b-256 9c3d60731f7af9eeecdac9305b5b74be3034802e58208a579638997e060ecd87

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