Skip to content

Instantly share code, notes, and snippets.

View saxomoose's full-sized avatar

Mathieu Tulpinck saxomoose

View GitHub Profile
@saxomoose
saxomoose / create-vm.ps1
Last active June 14, 2022 10:03
hyper-v scripts
$working_directory = "C:\utilities\scripts\hyper-v\"
Set-Location -Path $working_directory
$s = Get-Date -Format o | ForEach-Object { $_ -replace ":", "." }
$timestamp = $s.Substring(0, $s.indexOf('.') + 6) # yyyy-MM-ddThh.mm.ss
$prefix = Read-Host "Prefix (default: mt)"
if ($prefix -eq '') {
$prefix = "mt"
}
$project = Read-Host "Project (default: lab)"