Phil Hunt
Add space in "VirtualMachines"
4176b74
Raw History Blame Contribute Delete
348 Bytes
param(
[string]$Name = $null
)
Import-Module 'E:/Virtual Machines/mod.psm1' -Function Repair-VirtualMachine
# If a name was passed
if ($Name) {
Repair-VirtualMachine -Name $Name
} else {
Get-ChildItem -Path 'E:/Virtual Machines/Hyper-V' -Directory | ForEach-Object {
Repair-VirtualMachine -Name $_.Name
}
}