PowerShell script exchange
Post Reply
GabesVirtualWorld
Expert
Posts: 249
Liked: 38 times
Joined: Jun 15, 2009 10:49 am
Full Name: Gabrie van Zanten
Contact:

Reinstall Agents on Hyper-V host

Post by GabesVirtualWorld »

Hi
We're re-installing a bunch of Hyper-V hosts with the latest roll-up pack for Server 2016. The quickest way for us is to just delete the host and completely reinstall it through PXE boot. After the host is running again (same name, same IP), VEEAM of course has trouble connecting since there are probably some GUID changes or so. In the VEEAM GUI you see those hosts with a red X on them. In the GUI you just go to properties, next, next, finish and you're done.

But since we're looking at at least 50 hosts, I was wondering if this could be done through powershell. I thought to use Remove-VBRServer to first remove the host and then add the host again with Add-VBRHvHost. But when I do that, the host gets added as a separate host as if I want to use it to backup from directly. I would like to just refresh the installation of the hosts in the SCVMM object.

Is there another way to do that?
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Reinstall Agents on Hyper-V host

Post by PTide »

Hi,

Maybe I got something wrong, but since you're using SCVMM to manage those 50 servers, why don't you just click-through SCVMM wizard in VBR one time (via 'Edit') ? That should do the trick.

Thanks!
GabesVirtualWorld
Expert
Posts: 249
Liked: 38 times
Joined: Jun 15, 2009 10:49 am
Full Name: Gabrie van Zanten
Contact:

Re: Reinstall Agents on Hyper-V host

Post by GabesVirtualWorld »

Actually, I didn't know that. Found out with support today :-)
Did rescans and refresh, but didn't go through the wizard :-( All fixed now.
veremin
Product Manager
Posts: 20411
Liked: 2299 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Reinstall Agents on Hyper-V host

Post by veremin »

Just so you know - you can trigger rescan automatically via this cmdlet. Thanks!
GabesVirtualWorld
Expert
Posts: 249
Liked: 38 times
Joined: Jun 15, 2009 10:49 am
Full Name: Gabrie van Zanten
Contact:

Re: Reinstall Agents on Hyper-V host

Post by GabesVirtualWorld » 1 person likes this post

Thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests