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

Reinstall Agents on Hyper-V host

Post by GabesVirtualWorld » Jan 15, 2019 7:32 pm

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: 4814
Liked: 401 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Reinstall Agents on Hyper-V host

Post by PTide » Jan 16, 2019 6:45 pm

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: 177
Liked: 15 times
Joined: Jun 15, 2009 10:49 am
Full Name: Gabrie van Zanten
Contact:

Re: Reinstall Agents on Hyper-V host

Post by GabesVirtualWorld » Jan 16, 2019 10:11 pm

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.

v.Eremin
Product Manager
Posts: 15807
Liked: 1252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Reinstall Agents on Hyper-V host

Post by v.Eremin » Jan 17, 2019 12:00 pm

Just so you know - you can trigger rescan automatically via this cmdlet. Thanks!

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

Re: Reinstall Agents on Hyper-V host

Post by GabesVirtualWorld » Jan 18, 2019 8:28 am 1 person likes this post

Thank you!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests