pyinfra.connectors.pyinfrawinrmsession package¶
-
class
pyinfra.connectors.pyinfrawinrmsession.PyinfraWinrmSession(target, auth, **kwargs)¶ Bases:
SessionThis is our subclassed Session that allows for env setting
-
run_cmd(command, args=(), env=None)¶
-
run_ps(script, env=None)¶ base64 encodes a Powershell script and executes the powershell encoded script command
-
pyinfra 2.x