We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running a PS script that inadvertently prompts (such as missing parameters), it will hang forever.
winrm/init.py around line 52 should add NonInteractive to have it error out instead of hanging forever.
rs = self.run_cmd('powershell -NonInteractive -encodedcommand {0}'.format(encoded_ps))
To test it run this PowerShell command Get-Content Since no parameters are supplied, it will try to prompt and hang pywinrm
Get-Content
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When running a PS script that inadvertently prompts (such as missing parameters), it will hang forever.
winrm/init.py around line 52 should add NonInteractive to have it error out instead of hanging forever.
To test it run this PowerShell command
Get-Content
Since no parameters are supplied, it will try to prompt and hang pywinrmThe text was updated successfully, but these errors were encountered: