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