Functions/Get-VMInfo.ps1
function Get-VMInfo { $AllVms = Get-VM $AllVms | Sort-Object Path | Select-Object Name, Path | Format-Table -AutoSize $AllVms | Get-VMDvdDrive | Select-Object VMName, Path | Format-Table -AutoSize $AllVmSwitches = Get-VMSwitch | Sort-Object Name $AllVmSwitches | Format-Table $AllVms | Get-VMNetworkAdapter | Select-Object VMName,SwitchName,MacAddress,IPAddresses | Format-Table -AutoSize } |