Created
February 21, 2020 00:05
-
-
Save Peleke/6378827722c371d2f33b9a9516ab1017 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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