I created this page as a repository to keep scripts that I find useful. These are ones that I use on a regular basis or might use someday. I take no credit in creating any of these, I have included a link to download the script, listed any instructions and a link to the creator of the script.
Scan datastores and Import all unregistered VMs
( Aka Mass import of VMs )
Edit the script file and at the end there are several commented out lines that are examples of some of the import options. Create your own or edit an existing on and uncomment it out and save the file.
Download script from here – vm-import.ps1
Then open up PowerCLI and connect to your vCenter server or a host with command below.
connect-viserver -server servername
the execute the script from PowerCLI prompt
About Brian Suhr
Brian is a VCDX5-DCV and a Sr. Tech Marketing Engineer at Nutanix and owner of this website. He is active in the VMware community and helps lead the Chicago VMUG group. Specializing in VDI and Cloud project designs. Awarded VMware vExpert status 6 years for 2016 - 2011. VCP3, VCP5, VCP5-Iaas, VCP-Cloud, VCAP-DTD, VCAP5-DCD, VCAP5-DCA, VCA-DT, VCP5-DT, Cisco UCS Design