Hi guys, I've got this PSscript to create virtual machines but it's not working to how I want it, I keep getting an error (attached)
Powershell
[int]$VMcount=Read-host“InputNumberofVMs”$VMTemplate=Read-host"Input VMTemplate Name e.g. Template-Win2012-R2 Std-Full"$VMName=Read-host“InputBaseName”$VMHost=Read-host"Input Host Name"$VMPath=Read-host"Input VM Path"$Total=1While($total-le$VMCount){$NewVMName=“$VMName-”+$totalWrite-Output$virtualMachineConfigurationNew-SCVirtualMachine-Name$NewVMName-VMHost"$VMHost"-path"$VMPath"-VMTemplate"$VMTemplate"-ReturnImmediately-DelayStartSeconds“0"$Total++}
We do have a MS Azure registered in site recovery, but how do I get around disabling this into the script?
Any help would be greatly appreciated