jjoz
asked on
Modifying Powershell to list VM with certain hardware installed
Hi,
I'd like to know if it is possible to modify this script to include the adapter type in the next column ?
Thanks,
JJ
Note: this is the continuation from https://www.experts-exchange.com/questions/26591906/Powershell-to-list-VM-with-certain-hardware-installed.html
I'd like to know if it is possible to modify this script to include the adapter type in the next column ?
Thanks,
JJ
Note: this is the continuation from https://www.experts-exchange.com/questions/26591906/Powershell-to-list-VM-with-certain-hardware-installed.html
###########################################################################################
# TScript: List VMs with Network Adapter Type #
# Created by: Luciano Patrão #
# Date: 04-10-2010 #
###########################################################################################
Connect-VIServer $server -User $user -Password $pwd
$vms = Get-VM
write "`nVM's with Network Adapter Type: "
foreach ($vm in $vms | where { $_ | get-NetworkAdapter | where { $_.TYPE -ne "vmxnet3"} })
{write $vm.name}
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks Chris.
ASKER
@BestWay, many thanks for your efforts in trying to help me man.
Hi
Sorry I have been busy. But glade that you have manage.
Jail
Sorry I have been busy. But glade that you have manage.
Jail
ASKER
no worries BestWay, all the best for you in your duty :-)
I will create you a new script in the end of the day, then I will post it here
Jail