##// END OF EJS Templates
automation: execute powershell when connecting...
Gregory Szorc -
r42885:e91930d7 5.1 stable
parent child Browse files
Show More
@@ -37,7 +37,7 b' def wait_for_winrm(host, username, passw'
37 37 try:
38 38 client = Client(host, username=username, password=password,
39 39 ssl=ssl, connection_timeout=5)
40 client.execute_cmd('echo "hello world"')
40 client.execute_ps("Write-Host 'Hello, World!'")
41 41 return client
42 42 except requests.exceptions.ConnectionError:
43 43 if time.time() >= end_time:
General Comments 0
You need to be logged in to leave comments. Login now