Esx find not added vmx files

Our stuff has made a mistake while removing virtual machines , they had bring the vmx files and just removed from the invertory.
We are using cloud nodes and 1 storage with 3HDD on storage.
Is there any way to find vmx directories which is not added to the cluster
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Can you browse the VM folders, on the VMFS datastore, and add the virtual machines back ?

You could run a script, to look for orphaned files, which are not registered with the inventory.
PowerGUI plugin for vmware can sort those out fairly quickly
FireBallITAuthor Commented:
is there any command for power gui gheist

we have 400+ vds andrew it is impossible to find one by one
Install powergui power pack for vmware (which requires vmware powercli from vmware)
Then look for "orphaned vmdk report"

Alternatively on a single ESXi machine you can SSH and run find / -name *vmdk -mtime +10
i.e look for files named vmdk and not modified recently
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You can download and install RV Tools from here

this has a reporting tool for orphaned files, no need for powercli or scripts.

if you want to use powercli see here

I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.

One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI


VMware Community Pack

You will find the orphaned files script.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.