First off i'm on Veeam 6.5 and the script i'm using is as follows:
Code: Select all
$rp = Get-VBRRestorePoint –Backup(Get-VBRBackup –Name “Regular #3”) –Name PRNSRV* | select –Last 1
$server = Get-VBRServer –Name "esx2"
$datast = Find-VBRViDatastore -Server $server -Name "VOL06"
Start-VBRRestoreVM -RestorePoint $rp -Server $server -Datastore $datast -VMName "PRNSRV-restore" -PowerUp FASLE
Code: Select all
Start-VBRRestoreVM : Cannot convert 'System.String' to the type 'System.Boolean
' required by parameter 'PowerUp'.
At line:1 char:110
+ Start-VBRRestoreVM -RestorePoint $rp -Server $server -Datastore $datast -VMNa
me "PRNSRV-restore" -PowerUp <<<< FASLE
+ CategoryInfo : InvalidArgument: (:) [Start-VBRRestoreVM], Param
eterBindingException
+ FullyQualifiedErrorId : CannotConvertArgument,Veeam.Backup.PowerShell.Co
mmand.StartVBRRestoreVM
Also i would like to be able to tell the script which network the VM should be connected to (ie a test network) but can't seem to find a command for this.
Thanks
Edwin