{"action":"created","issue":{"url":"https://api.github.com/repos/mwrock/packer-templates/issues/41","repository_url":"https://api.github.com/repos/mwrock/packer-templates","labels_url":"https://api.github.com/repos/mwrock/packer-templates/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/mwrock/packer-templates/issues/41/comments","events_url":"https://api.github.com/repos/mwrock/packer-templates/issues/41/events","html_url":"https://github.com/mwrock/packer-templates/issues/41","id":157994560,"number":41,"title":"Why would installing updates invalidate a password in autounattend?","user":{"login":"spuder","id":242382,"avatar_url":"https://avatars.githubusercontent.com/u/242382?v=3","gravatar_id":"","url":"https://api.github.com/users/spuder","html_url":"https://github.com/spuder","followers_url":"https://api.github.com/users/spuder/followers","following_url":"https://api.github.com/users/spuder/following{/other_user}","gists_url":"https://api.github.com/users/spuder/gists{/gist_id}","starred_url":"https://api.github.com/users/spuder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spuder/subscriptions","organizations_url":"https://api.github.com/users/spuder/orgs","repos_url":"https://api.github.com/users/spuder/repos","events_url":"https://api.github.com/users/spuder/events{/privacy}","received_events_url":"https://api.github.com/users/spuder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-01T20:03:36Z","updated_at":"2016-06-01T20:59:32Z","closed_at":"2016-06-01T20:59:32Z","body":"The windows 2012r2 template work great except for one weird corner case. Matt, do you have any idea whats going on here? \r\n\r\nIf I change the username to something other than vagrant, _**AND**_ I install windows updates, then on the first boxstarter reboot, I get \"invalid password\". \r\n\r\nNote that If I do one or the other (change username OR install windows updates), packer builds correctly. \r\n\r\n\r\n\r\n> Autounattend has called boxstarter.ps1 and boxstarter has called package.ps1\r\ninside package.ps1, boxstarter is running `Install-WindowsUpdate -AcceptEula`\r\n\r\n\r\n![screenshot 2016-06-01 13 01 35](https://cloud.githubusercontent.com/assets/242382/15722048/fc46f3de-27f8-11e6-8e74-a8742de9e282.png)\r\n\r\n> package.ps1 has completed and boxstarter is about to reboot\r\nNote the line \"Securely Storing installer credentials for automatic login\"\r\n\r\n![screenshot 2016-06-01 13 02 36](https://cloud.githubusercontent.com/assets/242382/15722126/46b1b300-27f9-11e6-92bb-b0bef0fc2750.png)\r\n\r\nYet on the first boot\r\n\r\n![screenshot 2016-06-01 13 05 12](https://cloud.githubusercontent.com/assets/242382/15722178/7f577226-27f9-11e6-989f-704a0a44faf0.png)\r\n\r\n\r\nI take the exact same configs and replace my username & password with 'vagrant', and autologon works. \r\n\r\n\r\n![screenshot 2016-06-01 13 58 26](https://cloud.githubusercontent.com/assets/242382/15723712/03b07fca-2801-11e6-97d0-0333a5e4efee.png)\r\n\r\n\r\n\r\n- Vagrant username & windows updates = **Success**\r\n- Custom username without windows updates = **Success**\r\n- Custom username & windows updates = **Failure**\r\n\r\n\r\n\r\nI know the user is setup correctly, because I can click ok and type in the password manually. Boxstarter then resumes. Teh \r\n\r\nTo make sure It isn't a problem with the autounattend.xml, I've tried both plain text and base64 encoded passwords. Both work fine. \r\n```xml\r\n  <AutoLogon>\r\n       <Enabled>true</Enabled>\r\n       <Username>installer</Username>\r\n       <Password>\r\n            <Value>xxxxxxxxxxxxxxxxxxxxx</Value>\r\n            <PlainText>false</PlainText>\r\n        </Password>\r\n    </AutoLogon>\r\n```\r\n\r\n```xml\r\n  <AutoLogon>\r\n        <Enabled>true</Enabled>\r\n        <Username>installer\r\n</Username>\r\n        <Password>\r\n            <Value>correct-horse-battery-staple</Value>\r\n            <PlainText>true</PlainText>\r\n        </Password>\r\n   </AutoLogon>\r\n```\r\n\r\nI've searched every script for any hard coded references to 'vagrant', I can find none.\r\nI've also checked the external scripts boxstarter calls for any hard coded 'vagrant' references. \r\nIt can't be a windows update breaking this since it works with the 'vagrant' user. \r\n\r\nI've also tried the following in package.ps1\r\n\r\n    Install-WindowsUpdate -AcceptEula -SuppressReboots\r\n\r\nI can reproduce this 100% of the time. Going on 10 times with the exact same results. Any ideas?\r\n\r\nLog here: https://gist.github.com/spuder/227ccbb43310dd7bba3bfe137bdd9f1a"},"comment":{"url":"https://api.github.com/repos/mwrock/packer-templates/issues/comments/223122916","html_url":"https://github.com/mwrock/packer-templates/issues/41#issuecomment-223122916","issue_url":"https://api.github.com/repos/mwrock/packer-templates/issues/41","id":223122916,"user":{"login":"spuder","id":242382,"avatar_url":"https://avatars.githubusercontent.com/u/242382?v=3","gravatar_id":"","url":"https://api.github.com/users/spuder","html_url":"https://github.com/spuder","followers_url":"https://api.github.com/users/spuder/followers","following_url":"https://api.github.com/users/spuder/following{/other_user}","gists_url":"https://api.github.com/users/spuder/gists{/gist_id}","starred_url":"https://api.github.com/users/spuder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spuder/subscriptions","organizations_url":"https://api.github.com/users/spuder/orgs","repos_url":"https://api.github.com/users/spuder/repos","events_url":"https://api.github.com/users/spuder/events{/privacy}","received_events_url":"https://api.github.com/users/spuder/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T20:59:32Z","updated_at":"2016-06-01T20:59:32Z","body":"Looks like I might have missed the hard coded vagrant user in boxstarter.ps1\r\n\r\nI'll see myself out 🚶 "}}
{"actor":{"display_login":"spuder"}}