Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pywinrm does not execute and return error #378

Open
mnjagadeesh opened this issue May 21, 2024 · 0 comments
Open

pywinrm does not execute and return error #378

mnjagadeesh opened this issue May 21, 2024 · 0 comments

Comments

@mnjagadeesh
Copy link

I have noticed very strange behavior.

here is sample script

Create a session

session = winrm.Session(
    winrm_host,
    auth=(winrm_username, winrm_password),
    transport='ntlm',
    server_cert_validation='ignore'  
    )

# Command to execute
command = 'puppet agent --environment qa'
result = session.run_ps(command)

Linux: RHEL 8.x
Windows: 2019 server

Sometimes powershell will not get executed, but std_err is also empty string. Windows Event viewer also does not have any trace.
It works fine when rerun the script. Any hits to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant