Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

some properties not available on variables with more that one object

$
0
0

 

 

 

$nic1 = gwmi win32_networkadapterconfiguration -filter " ipenabled = 'true' "

# one object (NIC) is returened 

$nic1.-------> all needed properties (like ip address) are available 

 

$NICs = gwmi win32_networkadapterconfiguration -filter "description like '%hyper%' "

# two objects (NICs) is returened 

$NICs.-------> some needed properties are not available here

 

what should i do so that when i type $NICs.----> ip address property be appeared & available to select ?

thanks in advanced


Viewing all articles
Browse latest Browse all 6937

Trending Articles