Aston-HyperV-Code/Tests.ps1

4 lines
339 B
PowerShell

#$VMNetAdap = Get-VMNetworkAdapter -VMName RTR-01|ft -Property Switchname,Macaddress -HideTableHeaders
Get-VMNetworkAdapter -VMName RTR-01|Format-Table -Property Switchname,Macaddress -HideTableHeaders |Export-Csv D:\scripts\Guests\MACS\test.csv -NoTypeInformation
#echo $VMNETADAP | out-file -FilePath D:\scripts\Guests\MACS\temp.txt