Powershell Script to schedule hyper v Restore

PowerShell script exchange

Powershell Script to schedule hyper v Restore

Veeam Logoby Marcus » Mon 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
Marcus
Enthusiast
 
Posts: 31
Liked: 1 time
Joined: Wed Jul 13, 2016 4:33 pm
Full Name: Marcus MaC

Re: Powershell Script to schedule hyper v Restore

Veeam Logoby tdewin » Wed 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
tdewin
Veeam Software
 
Posts: 1286
Liked: 421 times
Joined: Fri Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin

Re: Powershell Script to schedule hyper v Restore

Veeam Logoby Marcus » Mon May 21, 2018 4:36 pm

Yeh got this answer before?

Can you restore all 4 vm's within the same powershell script?
Marcus
Enthusiast
 
Posts: 31
Liked: 1 time
Joined: Wed Jul 13, 2016 4:33 pm
Full Name: Marcus MaC

Re: Powershell Script to schedule hyper v Restore

Veeam Logoby tdewin » Wed 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.
tdewin
Veeam Software
 
Posts: 1286
Liked: 421 times
Joined: Fri Mar 02, 2012 1:40 pm
Full Name: Timothy Dewin


Return to PowerShell



Who is online

Users browsing this forum: ThierryF and 10 guests