Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 234493

Re: Get children folder

$
0
0

Use that folder as a parameter value on the Location parameter on the Get-Inventory cmdlet.

Something like this for example

$location = get-datacenter $datacenter | get-folder - location $folder

Get-Inventory -Location $location

You can switch on/off recursion with the NoRecursion switch.

 

If you only want to see VM, use the Get-VM cmdlet instead (with the Location parameter).


Viewing all articles
Browse latest Browse all 234493

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>