title: GCE Windows Instance not running startup scripts
body: <p>I have been trying to apply my startup scripts to new Windows instances on Google Compute Engine as described <a href="https://cloud.google.com/compute/docs/operating-systems/windows#using_startup_scripts_on_windows" rel="nofollow">here</a>, however when I check the instances there is no trace of them ever being executed. Here is the gcloud command I am running:</p>
  
  <p>gcloud compute instances create "my-instance" 
  --project "my-project"<br>
  --zone "us-central1-a"<br>
  --machine-type "g1-small"<br>
  --network "default"<br>
  --metadata "gce-initial-windows-user=my-user" "gce-initial-windows-password=my-pass"<br>
  --maintenance-policy "MIGRATE"<br>
  --scopes "storage-ro" 
  --tags "http-server" "https-server"<br>
  --image "<a href="https://www.googleapis.com/compute/v1/projects/windows-cloud/global/images/windows-server-2008-r2-dc-v20150110" rel="nofollow">https://www.googleapis.com/compute/v1/projects/windows-cloud/global/images/windows-server-2008-r2-dc-v20150110</a>"<br>
  --boot-disk-type "pd-standard"<br>
  --boot-disk-device-name "my-instance"<br>
  --metadata-from-file sysprep-oobe-script-ps1=D:\Path\To\startup.ps1  </p>
  
  <p>I tried using all 3 startup types (sysprep-specialize-script-ps1, sysprep-oobe-script-ps1, windows-startup-script-ps1) but none worked. Can't see any indication in the Task Scheduler or Event Viewer either. The file on my system exists and does work when I run it manually. How can I get this working?</p>