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-1.0.4.tar.gz (3.9 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.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: psremoter-1.0.4.tar.gz
  • Upload date:
  • Size: 3.9 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.4.tar.gz
Algorithm Hash digest
SHA256 0b15d36e547e0d5a0a32f29766522570410540031127630221c7b4ac6d98207d
MD5 47783bff1e819e746d62741fdbccaf03
BLAKE2b-256 13e32bda423ef568ad881fd4c9ab6c5995687225f1298264600564e174dcb3b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psremoter-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7beeeecf31758fbc9be344696a8e1604797bfd29c35370fcbd88f750c64efc36
MD5 ddff8118b42ea860fd0fee4f43c78614
BLAKE2b-256 125a516f4c8e2ce426bf32effb6baf715c97405a935faae8a9b8f17f2adfbf87

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