The play copies a powershell script and runs it on the target - the script 
looks up files in C:\Temp. This path definitely exists.

I can run this play without issues against other test servers - now that I 
want to run this play on the actual server I want to configure I get the 
below error.....

fatal: [servername]: FAILED! => {"changed": true, "msg": "non-zero return 
code", "rc": 1, "stderr": "Get-ChildItem : Cannot find path 'C:\\Temp' 
because it does not exist.\r\nAt C:\\Users\...........

Running the same Powershell script locally on the target server returns a 
json file - no errors thrown.

WinRM config etc is all ok.

Let me know if you need more info...


You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

Reply via email to