The easiest way would be something like (Get-CimInstance . . . ).count
If you already have a variable that contains the results of the Get-CimInstance then just get the "count" value from that: $x = Get-CimInstance . . . ; $x.count
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
What Get-CimInstance command can I use to get info about the number of network adapters and IP addresses?
I already have a command for getting the IP addresses and network adapter info thru the Get-CimInstance command
The easiest way would be something like (Get-CimInstance . . . ).count
If you already have a variable that contains the results of the Get-CimInstance then just get the "count" value from that: $x = Get-CimInstance . . . ; $x.count
I was able to get my script working fine with that part. I had almost everything done, but there were just a few things that I was missing, that are now solved. Thank you