{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/4615","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/4615/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/4615/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/4615/events","html_url":"https://github.com/hashicorp/terraform/issues/4615","id":125854222,"number":4615,"title":"winrm file provisioner seems to perform inconsistently","user":{"login":"astrally2000","id":11265091,"avatar_url":"https://avatars.githubusercontent.com/u/11265091?v=3","gravatar_id":"","url":"https://api.github.com/users/astrally2000","html_url":"https://github.com/astrally2000","followers_url":"https://api.github.com/users/astrally2000/followers","following_url":"https://api.github.com/users/astrally2000/following{/other_user}","gists_url":"https://api.github.com/users/astrally2000/gists{/gist_id}","starred_url":"https://api.github.com/users/astrally2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrally2000/subscriptions","organizations_url":"https://api.github.com/users/astrally2000/orgs","repos_url":"https://api.github.com/users/astrally2000/repos","events_url":"https://api.github.com/users/astrally2000/events{/privacy}","received_events_url":"https://api.github.com/users/astrally2000/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provisioner/remote-exec","name":"provisioner/remote-exec","color":"bfd4f2"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-10T23:50:41Z","updated_at":"2016-01-15T02:14:44Z","closed_at":"2016-01-15T02:14:44Z","body":"Hi all,\r\nApologies, I'm a bit of a noob with terraform, but I've been playing around with terraform and impressed by the potential. \r\nSadly it seems most of the resources are focused on linux workloads with limited examples of bootstrapping for windows clients. \r\nI'm looking at using prebaked AMIs (so I know WinRM is configured and I have a defined admin/password combo) and trying to perform DomainJoin as part of the bootstrap, so that I can pass in domain join password from command line as opposed to saving it within the configuration (although these attached examples have it within the commented out user_data)\r\n\r\nI'm having some issues with the file copy process executing consistently, in the two attached logs and configurations I have one with a file provisioner and remote-exec which copies all the files, whilst crashing at the inline provisioner (windows.tf_with_file_provisioner) as the period isn't recognised.\r\nMeanwhile the other terraform file copy fails (some of the files copy but not all of them) despite having the inline provioner commented out.\r\nHow can I get more detailed information describing what is happening during the file copy? \r\nAre there more references around syntax of remote-exec for  windows, I've searched the terraform google-group for some limited references. \r\nie if I want to call a powershell command, do I need to call it from cmd, or simply call the script directly? \r\n\r\n```js\r\n   provisioner \"remote-exec\" {\r\n       inline = [\r\n        \"powershell someps.ps1\",\t\t]\r\n    }\r\n```\r\n\r\nWhat about slashes on windows? \r\nDo I need to reverse them, as per file provisioner\r\nie         destination = \"c:\\\\tools\"\r\nWhat about different arguments passed after a powershell script, what's their syntax?\r\nI look forward to your response,\r\nThanks\r\nAndrew\r\n"}}