Link to home
Create AccountLog in
Avatar of jjoz
jjozFlag for Australia

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
###########################################################################################
# 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}

Open in new window

Avatar of Luciano Patrão
Luciano Patrão
Flag of Portugal image

Hi again :)

I will create you a new script in the end of the day, then I will post it here

Jail
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of jjoz

ASKER

Thanks Chris.
Avatar of jjoz

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
Avatar of jjoz

ASKER

no worries BestWay, all the best for you in your duty :-)