Hi,
Currently am trying to adapt this script (thanks Jase) http://www.jasemccarty.com/blog/?tag=powercli to be an all encompassing script.
I want to be able to deploy VM's from a CSV file and customise the template with a Static IP, Join it to the domain etc etc, attached is my current (poor) effort...if anyone can help me then that would be really appreciated.
Thanks
Dan
As the error message explains, run the PowerCLI 32-bit version.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Are you getting error messages or are there parts that are not working ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
1) it looks as if the custspec value is missing or empty.
2) is a result of 1). The OSCustomizationSpec was not found
3) the vmname value also appears to be missing
4) same as 1)
Perhaps you could show us an exampe of the CSV file you are using ?
Mask out the sensitive data first (key, name, ip...)
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Ok, would have been handy if you included some data as well in the CSV extract.
But still judging from the column headers there seem to be some inconsistencies:
You should also watch out with the values you have in the CSV.
They should converted to the correct type when you use them in the cmdlet parameters.
For example, the ChangeSid parameter is a switch and expects a Boolean value in the $ChangeSid variable.
PS will convert a string with the correct content automatically to a Boolean when used on a switch parameter, but you better make sure you are using the correct text.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
As the error message explains, run the PowerCLI 32-bit version.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks Luc for your patience, it is now all working, I had to go to 32 bit as the error said, then add a few additional required fields for domain credentials and a couple of more tweaks.