My goal is to scan each ESX server in a vCenter server one by one with a powershell script using the Scan-Inventory cmdlet. I was thinking I could do something like this "Scan-Inventory -Entity " where it would Scan the inventory, but only scan ESX servers and nothing else. Looks like "-Entity" is just the name of an entity. Anyway, trying to accomplish this with the below, but the expected output is not good.
C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> get-vmhost | select -ExpandP
roperty Name | ForEach-Object {Scan-Inventory}
cmdlet Scan-Inventory at command pipeline position 1
Supply values for the following parameters:
Entity[0]:
Not sure if scan-inventory doesn't accept pipe info? Anyone know why this keeps popping up?
**cmdlet Scan-Inventory at command pipeline position 1**
**Supply values for the following parameters:**
**Entity[0]:**
Thanks