VMware Cloud Community
Mllii
Enthusiast
Enthusiast

Looking for a script to find all unregistered VMs

Can anyone help me im very new to any kind of scripting i have got the tool kit installed with comunity cmdlets installed. and have run some of the scripts from here. thanks guys.

I have shared SAN accross all my ESX hosts in the 2 VCs. so all my ESX hosts see the same LUNs

What i want to do is search the luns find what VMs are not i either VC and Delete them or give me a list to check then delete them?

Thanks guys

Reply
0 Kudos
2 Replies
alanrenouf
VMware Employee
VMware Employee

Is this not what you are looking for....

Alan

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Reply
0 Kudos
LucD
Leadership
Leadership

Or perhaps this discussion ?

You could adapt the script to delete the VM from disk after it is registered.

Or write the found VMX files files to the screen or a report.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos