Skip to content

Instantly share code, notes, and snippets.

@Peleke
Created February 21, 2020 00:05
Show Gist options
  • Save Peleke/6378827722c371d2f33b9a9516ab1017 to your computer and use it in GitHub Desktop.
Save Peleke/6378827722c371d2f33b9a9516ab1017 to your computer and use it in GitHub Desktop.
# Set Variables
$machineName = 'cybersecurity/linux-scavenger'
$provider = 'hyperv'
$destinationDir = 'C:/LabEnvironments/Documents/LinuxScavenger'
$vagrantfileName = 'Vagrantfile'
# Download/Install Machine
vagrant box add $machineName --provider=$provider
& mkdir -p $destinationDir
cd $destinationDir
# Copy Vagrantfile to $destinationDir
cp "$PSScriptRoot/Vagrantfile" $destinationDir
vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment