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
Have a look at my VMX Raiders Revisited post.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Took your script an made it datastore specific for our needs and it works like a champ!
Thanks dude!