Overview of pypsrp APIs and capabilities
masterpypsrp is a Python client for the PowerShell Remoting Protocol (PSRP) and Windows Remote Management (WinRM) service. It allows executing commands on remote Windows hosts from any machine running Python.
The library provides four distinct API layers:
- Simple Client API: For copying files (to/from remote), executing processes, and running PowerShell scripts.
- WSMan Interface: For executing WSMan calls such as
Send,Create,Connect, andDisconnect. - Windows Remote Shell (WinRS) Layer: For executing
cmdcommands and executables using the WinRM protocol. - PowerShell Remoting Protocol (PSRP) Layer: For creating remote Runspace Pools and managing PowerShell pipelines.
Core capabilities include executing cmd commands, running executables, running PowerShell scripts, file transfers, and creating asynchronous Runspace Pools containing one or multiple PowerShell pipelines.