Hi am trying to create vm from template in esx server through powershell, the script works fine when I execute it from Win 7 system but it is not working when I try it from the windows server 2008. Any help will be apprriciated. Thanks
Are you using the same account on the W7 and the W2K8 machine ?
Could you perhaps include the command you try to execute ?
And the full error message ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Command:
Connect-VIServer -Server $server -User $user -Password $password -ErrorAction SilentlyContinue -WarningAction SilentlyContinue
new-vm -Location $folderName -vmhost $vmHost -Name $vmName -Template $templateName -Datastore $dataStore
Am using the same credentials and same script
I think this is the issue with 32 bit and 64 bit.
New-vm cmdlet works only for 32 bit systems as mentioned in the documentation
Thanks LucD
