forked from BenjaminArmstrong/Hyper-V-PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Expand-VMConfig.ps1
34 lines (26 loc) · 881 Bytes
/
Expand-VMConfig.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Function Expand-VMConfig ($VMConfig) {
$tempVM = (Compare-VM -Register -Path $VMConfig).VM
write-host "VM Configuration Data"
write-host "====================="
$tempVM | Select-Object *
write-host "VM Network Adapters"
write-host "====================="
$tempVM.NetworkAdapters
write-host "VM Hard Drives"
write-host "====================="
$tempVM.HardDrives
write-host "VM DVD Drives"
write-host "====================="
$tempVM.DVDDrives
write-host "VM Floppy Drive"
write-host "====================="
$tempVM.FloppyDrive
write-host "VM Fibre Channel"
write-host "====================="
$tempVM.FibreChannelHostBusAdapters
write-host "VM COM1"
write-host "====================="
$tempVM.ComPort1
write-host "VM COM2"
write-host "====================="
$tempVM.ComPort2}