Skip to content

Instantly share code, notes, and snippets.

@mkropat
mkropat / provision-base-box.ps1
Last active July 6, 2019 04:55 — forked from tvjames/Vagrantfile
Prepare Server 2012 for building a Vagrant base box
# provision-base-box.ps1 - Prepare Server 2012 for building a Vagrant base box
# Instructions:
#
# 1. Create a new Windows VM in VirtualBox
# 2. Install Server 2012 R2 onto the VM
# 3. Download and run this script from within the VM
# 4. Install Windows Updates within the VM
# 5. From the host machine, run: `vagrant package --base <name of VM in VirtualBox> --output <name>.box`
# 6. Then run: `vagrant box add <name> /path/to/<name>.box