VMware Cloud Community
COS
Expert
Expert

Register all VM's found in datastore into vCenter

OK, I have a datastore called "test-vmgarbage-nobackups" and it has about 15 VM folders in there as well as some folders that only have .vmdk's for other VM's.

Anyone have a quick and simple command that will look into my datastore and import my VM's into my vCenter Server?

I had a previous question asking how to remove them, now I want to put them back.

Get list of registered VM's that are in my test datastore then unregister them

Thanks

0 Kudos
2 Replies
LucD
Leadership
Leadership

Have a look at my VMX Raiders Revisited post.


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

0 Kudos
COS
Expert
Expert

Took your script an made it datastore specific for our needs and it works like a champ!

Thanks dude!

0 Kudos