Hi, One way of doing this is to ensure the script exits by doing something significant. For example, the system I linked to earlier enables remote WinRM at the very end of the script. Once WinRM is made available, the system is shut down using a WinRM call on the actual host machine. This means that if the script finished without errors, then the system gets shut down. Andrew. ________________________________________ From: Blind-sysadmins [blind-sysadmins-bounces@lists.hodgsonfamily.org] on behalf of Katherine Moss [Katherine.Moss@gordon.edu] Sent: 07 December 2015 00:49 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] Using Unattended setup files for one-off Windows server installs Thanks Andrew! I nearly forgot about Vagrant! Though I wish the conversion from Virtual Box to Hyper-V weren't necessary ... unless Virtual Box has now decided to start supporting .vhdx files? Or I wonder whether or not one can do it using a .vhd file? Then it's just a matter of running convert-vhd in PowwerShell. I'll take a look! Wwhile we're at it, would you mind explaining how you ensure that none of the scripts abort and leave the system in an unknown state? Or would it be easier if I have a sighted person standing there while the whole thing is happening? Not horrible,, but my pride was hoping to avoid it ... LOL -----Original Message----- From: Blind-sysadmins [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of Andrew Hodgson Sent: Sunday, December 6, 2015 2:40 PM To: Blind sysadmins list <blind-sysadmins@lists.hodgsonfamily.org> Subject: Re: [Blind-sysadmins] Using Unattended setup files for one-off Windows server installs Hi, I am currently experimenting with using Vagrant and Packer to do all this work with the initial setup of Windows VMs. I am doing it locally using Virtual Box, then converting the box template to Hyper-V. Here is a blog post which explains how this all works: http://www.hurryupandwait.io/blog/creating-windows-base-images-for-virtualbo... There is an example on there that does quite a bit of this work, but I want my own setup so am doing my own unattend files. This is where I have spent a lot of time, and it is slightly difficult if you can't see the screen as some of the scripts can just abort and leave the system in an unknown state. Andrew. -----Original Message----- From: Blind-sysadmins [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of Katherine Moss Sent: 06 December 2015 19:31 To: 'blind-sysadmins@lists.hodgsonfamily.org' <blind-sysadmins@lists.hodgsonfamily.org> Subject: [Blind-sysadmins] Using Unattended setup files for one-off Windows server installs Hi all, I've been looking at this for a bit and I can't find anything definitive. I'm trying to do the following: Create an autounattend.xml file via Windows SIM that covers all passes of the Windows installation Use my newly created file in order to install one of my Virtual machines (I don't care about capturing an image, for this is just so that I don't need to go through all of the steps manually, and so that I do not require the assistance of a sighted individual (sysprep and image capture will come later with SCCM) Ensure that Hyper-V will recognize the file (the question is where to place the file so that it is automatically discovered by Windows setup, since the use of a virtual rather than a physical machine seems to complicate things; read something about someone writing the file to the virtual DVD-Rom drive added to the VM, though God only knows how they did that) Input would be great ... Thanks! _______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org https://lists.hodgsonfamily.org/listinfo/blind-sysadmins _______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org https://lists.hodgsonfamily.org/listinfo/blind-sysadmins _______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org https://lists.hodgsonfamily.org/listinfo/blind-sysadmins