PowerShell script exchange
Post Reply
Marcus
Enthusiast
Posts: 35
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 »

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: 1818
Liked: 655 times
Joined: Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin
Contact:

Re: Powershell Script to schedule hyper v Restore

Post by tdewin »

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: 35
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 »

Yeh got this answer before?

Can you restore all 4 vm's within the same powershell script?
tdewin
Veeam Software
Posts: 1818
Liked: 655 times
Joined: Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin
Contact:

Re: Powershell Script to schedule hyper v Restore

Post by tdewin »

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 17 guests