HI Luc,
Good morning
could you suggest the way to find all configurations files .vmx from datastore .
we are doing this to find whats vms needs to be added to inventory in case they were removed earlier .
i tried to find in following way
$datastores = ("SAN01","SAN_02","SAN_03","SAN_D4","TRDL_VSAN1","VSAN2")
$report=foreach ($d in $datastores)
{
get-vm -datastore $d|select name
}
$report|out-file vmnames.txt
however above will give information depending on the display name of vcenter .what needs to be modified to get .vmx files in datastore.