PowerShell script exchange
datacomm
Service Provider
Posts: 14 Liked: never
Joined: Aug 29, 2017 4:44 pm
Full Name: Tim Steffens
Contact:
Post
by datacomm » Nov 28, 2017 4:08 am
this post
I am trying to use the following code to perform an instant VM recover:
Code: Select all
$restorepoint = Get-VBRRestorePoint -name "MyServer01" | Sort-Object $_.creationtime -Descending | Select -First 1; $server = Get-VBRServer -Name "hyperV01" | Where-Object {$_.Type -eq "HvServer"};Start-VBRInstantRecovery –RestorePoint $restorepoint -Server $server -PowerUp -Reason "Test recovery";
I am getting an error of this:
Code: Select all
Start-VBRInstantRecovery : Failed to process RestorePoint 5f295b2e-4ae9-4c69-96f6-9ea8b66e0ae2. Platform type EHyperV
is not supported
At line:1 char:196
+ ... "HvServer"};Start-VBRInstantRecovery –RestorePoint $restorepoint -Ser ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Start-VBRInstantRecovery], Exception
+ FullyQualifiedErrorId : System.Exception,Veeam.Backup.PowerShell.Cmdlets.StartVBRInstantRecovery
Any ideas why I would get this?
veremin
Product Manager
Posts: 20415 Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:
Post
by veremin » Nov 28, 2017 10:43 am
this post
Try the Hyper-V cmdlet instead and see whether it helps: Start-VBRHvInstantRecovery. Thanks.
datacomm
Service Provider
Posts: 14 Liked: never
Joined: Aug 29, 2017 4:44 pm
Full Name: Tim Steffens
Contact:
Post
by datacomm » Nov 28, 2017 1:25 pm
this post
That worked thanks!
veremin
Product Manager
Posts: 20415 Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:
Post
by veremin » Nov 28, 2017 2:21 pm
this post
You're welcome, some cmdlets work differently for Hyper-V and vSphere platforms, because of that they are separated with specific prefixes: HV, VI. So, keep an eye on that. Thanks.
Users browsing this forum: No registered users and 4 guests