{"action":"opened","issue":{"url":"https://api.github.com/repos/mwrock/boxstarter/issues/163","repository_url":"https://api.github.com/repos/mwrock/boxstarter","labels_url":"https://api.github.com/repos/mwrock/boxstarter/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/mwrock/boxstarter/issues/163/comments","events_url":"https://api.github.com/repos/mwrock/boxstarter/issues/163/events","html_url":"https://github.com/mwrock/boxstarter/issues/163","id":145946828,"number":163,"title":"Install halts after reboot when installing 2 packages","user":{"login":"riezebosch","id":1427334,"avatar_url":"https://avatars.githubusercontent.com/u/1427334?v=3","gravatar_id":"","url":"https://api.github.com/users/riezebosch","html_url":"https://github.com/riezebosch","followers_url":"https://api.github.com/users/riezebosch/followers","following_url":"https://api.github.com/users/riezebosch/following{/other_user}","gists_url":"https://api.github.com/users/riezebosch/gists{/gist_id}","starred_url":"https://api.github.com/users/riezebosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riezebosch/subscriptions","organizations_url":"https://api.github.com/users/riezebosch/orgs","repos_url":"https://api.github.com/users/riezebosch/repos","events_url":"https://api.github.com/users/riezebosch/events{/privacy}","received_events_url":"https://api.github.com/users/riezebosch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-05T10:21:08Z","updated_at":"2016-04-05T10:21:08Z","closed_at":null,"body":"This is my script: \r\n```powershell\r\nNew-PackageFromScript \"https://gist.githubusercontent.com/riezebosch/6b0523a19f6b5eafcc9f/raw/_install.ps1\" BOXSTARTER_VS2015\r\nNew-PackageFromScript \"https://gist.githubusercontent.com/riezebosch/6b0523a19f6b5eafcc9f/raw/shutdown.ps1\" BOXSTARTER_SHUTDOWN\r\nInstall-BoxstarterPackage BOXSTARTER_VS2015,BOXSTARTER_SHUTDOWN -Credential $cred\r\n```\r\n\r\nI first generate 2 packages from 2 different gists and then invoke the Install-BoxstarterPackage with both packages. This is because I reuse the shutdown script in several different installations.\r\n\r\nIn version 2.6 this works fine, but since 2.7 it fails the continue after a reboot that is invoked from within the first package.\r\n\r\n![boxstarter_after_reboot](https://cloud.githubusercontent.com/assets/1427334/14278352/860b0e4c-fb27-11e5-9703-7ffdf3806ae8.PNG)\r\n\r\n\r\nHere's the last portion of the log file:\r\n```\r\nChocolatey installed 1/1 package(s). 0 package(s) failed.\r\n See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).\r\n[2016-04-05T11:29:49.6003188+02:00:::PID 2000] Boxstarter: restoring current directory location to C:\\windows\\system32\r\n[2016-04-05T11:29:49.6003188+02:00:::PID 2000] Boxstarter: found C:\\Users\\Administrator\\AppData\\Local\\Boxstarter\\Boxstarter.2000.restart we are restarting\r\n[2016-04-05T11:29:49.6003188+02:00:::PID 2000] Boxstarter: found C:\\Users\\Administrator\\AppData\\Local\\Boxstarter\\Boxstarter.2000.restart we are restarting\r\n[2016-04-05T11:29:49.6315691+02:00:::PID 2000] Boxstarter: Exit Code: 0\r\n[2016-04-05T11:29:49.6784444+02:00:::PID 2000] + Boxstarter finished Calling Chocolatey to install BOXSTARTER_VS2015. This may take several minutes to complete... 00:12:07.4394493\r\n[2016-04-05T11:29:49.6784444+02:00:::PID 2000] + Boxstarter finished Calling Chocolatey to install BOXSTARTER_VS2015. This may take several minutes to complete... 00:12:07.4394493\r\n[2016-04-05T11:29:49.6940702+02:00:::PID 2000] Boxstarter: Removing C:\\ProgramData\\chocolatey\\lib\\BOXSTARTER_VS2015 in progress\r\n[2016-04-05T11:29:49.7096954+02:00:::PID 2000] Boxstarter: writing restart file\r\n[2016-04-05T11:29:49.7096954+02:00:::PID 2000] Boxstarter: writing restart file\r\n[2016-04-05T11:29:49.7721911+02:00:::PID 2000] Boxstarter: Restore Automatic Updates from Windows Update\r\n[2016-04-05T11:29:49.8190675+02:00:::PID 2000] Boxstarter: UAC Enabled. Disabling...\r\n[2016-04-05T11:29:49.8346915+02:00:::PID 2000] Boxstarter: Disabling UAC\r\n[2016-04-05T11:29:49.8971917+02:00:::PID 2000] Boxstarter: Securely Storing DOCENTA\\Administrator credentials for automatic logon\r\n[2016-04-05T11:29:50.5394990+02:00:::PID 2000] Boxstarter: Logon Set\r\n[2016-04-05T11:29:50.5707503+02:00:::PID 2000] + Boxstarter finished Installation session. 00:12:09.2844118\r\n[2016-04-05T11:29:50.5707503+02:00:::PID 2000] Boxstarter: Restart Required. Restarting now...\r\n[2016-04-05T11:29:50.9948486+02:00:::PID 2000] Boxstarter: Composing record for pipeline...\r\n[2016-04-05T11:29:50.9948486+02:00:::PID 2000] Boxstarter: writing object...\r\n[2016-04-05T11:29:51.0260918+02:00:::PID 2000] Boxstarter: object written...\r\n[2016-04-05T11:33:36.7027209+02:00:::PID 3020] parent process is cmd\r\n[2016-04-05T11:33:36.7808272+02:00:::PID 3020] parent process is explorer\r\n[2016-04-05T11:33:36.9527297+02:00:::PID 3020] Error getting parent process\r\n[2016-04-05T11:33:37.1558273+02:00:::PID 3020] Boxstarter Version 2.7.0\r\n[2016-04-05T11:33:37.1714525+02:00:::PID 3020] (c) 2015 Matt Wrock. http://boxstarter.org\r\n\r\n[2016-04-05T11:33:37.2027029+02:00:::PID 3020] + Boxstarter starting Installation session.\r\n[2016-04-05T11:33:37.2183278+02:00:::PID 3020] Boxstarter: NoPassword is false checking autologin\r\n[2016-04-05T11:33:37.2808277+02:00:::PID 3020] Boxstarter: AutoLogin status is True\r\n[2016-04-05T11:33:37.3120778+02:00:::PID 3020] Boxstarter: NoPassword is set to True and RebootOk is set to True and the NoPassword parameter passed was False\r\n[2016-04-05T11:33:37.3277029+02:00:::PID 3020] Boxstarter: Disabling Automatic Updates from Windows Update\r\n[2016-04-05T11:33:38.2652031+02:00:::PID 3020] Boxstarter: LocalRepo is at C:\\VPC_images\r\n[2016-04-05T11:33:38.3120787+02:00:::PID 3020] Boxstarter: Installing 2 packages from C:\\VPC_images;http://chocolatey.org/api/v2;http://www.myget.org/F/boxstarter/api/v2\r\n[2016-04-05T11:33:38.3745785+02:00:::PID 3020] You cannot call a method on a null-valued expression.\r\n[2016-04-05T11:33:38.3745785+02:00:::PID 3020] Boxstarter: Restore Automatic Updates from Windows Update\r\n[2016-04-05T11:33:38.5464538+02:00:::PID 3020] Boxstarter: Enabling UAC\r\n[2016-04-05T11:33:38.5777042+02:00:::PID 3020] Boxstarter: Cleaning up and not rebooting\r\n[2016-04-05T11:33:38.5777042+02:00:::PID 3020] Boxstarter: Cleaning up restart file\r\n[2016-04-05T11:33:38.5777042+02:00:::PID 3020] Boxstarter: Cleaning up autologon registry keys\r\n```\r\n\r\nI tried invoking boxstarter with the -verbose parameter, but this also seems to be lost after a reboot."}}