PowerShell script exchange
Post Reply
Marcus
Enthusiast
Posts: 31
Liked: 1 time
Joined: Jul 13, 2016 4:33 pm
Full Name: Marcus MaC
Contact:

Powershell Script to schedule hyper v Restore

Post by Marcus » May 14, 2018 4:16 pm

Hi All,

I am very new to power-shell and veeam sorry for asking these basic questions.
My scenario is I have two windows server 2012.

server 1 is the host server running hyper v and 4vm's ( all VM backups are been backed up to a network nass server) This is were the veeam console is installed.

server 2 is the target server where I want to restore the backed up vm's I can do this manually without any problem.

I have 4 vm's

VM1
VM2
VM3
VM4


I need to create a script so that I can restore the vms to my target server which is server2 on a weekly basic instead of doing the restore manually

Any help would be appreciated.
Thanks
Mark

tdewin
Veeam Software
Posts: 1326
Liked: 435 times
Joined: Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin
Contact:

Re: Powershell Script to schedule hyper v Restore

Post by tdewin » May 16, 2018 6:51 am

There is an example in the manual on how to do this (including looking for the restore point and starting the full vm restore). Just make sure to use the HV (hyper-v) specific cmdlets
https://helpcenter.veeam.com/docs/backu ... tml?ver=95

Marcus
Enthusiast
Posts: 31
Liked: 1 time
Joined: Jul 13, 2016 4:33 pm
Full Name: Marcus MaC
Contact:

Re: Powershell Script to schedule hyper v Restore

Post by Marcus » May 21, 2018 4:36 pm

Yeh got this answer before?

Can you restore all 4 vm's within the same powershell script?

tdewin
Veeam Software
Posts: 1326
Liked: 435 times
Joined: Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin
Contact:

Re: Powershell Script to schedule hyper v Restore

Post by tdewin » May 23, 2018 6:46 pm

well I believe yes, but in this case you might consider the -runAsync parameter so it doesn't block the action (waiting). I think you can capture the session in a variable though so that you can stop it later.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests