Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 150956

Re: Organize VM's into Folders based on Active Directory Info?

$
0
0

I work with the original poster.  I used the Quest Active Directory plugin to grab the relevant information out of Active Directory.  Since our VMs are named based on the user name (with a 2 character prefix), I was able to determine the related user, and cross reference the organizational information from that.  Finally, I created any folders that didn't already exist in the structure and moved the machines that were not in the correct folder already.  First run took a couple hours for around 1600 VMs, but subsequent runs took around 5 minutes.  Later, wrote a SQL query that I used from PowerShell to pull all the information from the VMware vSphere database much more quickly, and cross reference the differences via a SQL map of our Active Directory structure, and the actual data crunching was sped up significantly.

 

Unfortunately, I can't share the code as it is very specific to our environment, but I can confirm that it can be done with only PowerCLI and ActiveDirectory queries only.


Viewing all articles
Browse latest Browse all 150956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>