Hi
I am trying to establish the failover relation ship between two windows servers (w1 and w2 which are 2012 version) with power shell commands like
Add-DhcpServerv4Failover -ComputerName "dhcpserver.contoso.com" -Name "SFO-SIN-Failover" -PartnerServer 10.0.0.99 -ScopeId 10.10.10.0,10.20.20.0 -LoadBalancePercent 70 -MaxClientLeadTime 2:00:00 -AutoStateTransition $True -StateSwitchInterval
2:00:00
but this command will be executed on one of windows server from an external linux machine(external remote), where winrm being the interface between the linux and windows. This winrm will carry the command from linux and gets executed on w1 at that time it is trying to communicate to another windows server w2 to cross check failover already exists or not but it is unable to communicate w2 stack trace gives me permission denied
<S S="Error">Add-DhcpServerv4Failover : Failed
to verify if a failover relationship by the_x000D__x000A_</S>
<S S="Error">name SFO-SIN-Failover exists
on server 10.0.0.99._x000D__x000A_</S>
<S S="Error">At line:1 char:74_x000D__x000A_</S>
<S S="Error">+ if (-not(Get-DhcpServerv4Failover | ? { $_.Name -eq "MSDHCP0037Peer"})){ _x000D__x000A_</S>
<S S="Error">Add-Dhc ..._x000D__x000A_</S>
<S S="Error">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S>
<S S="Error">~~~_x000D__x000A_</S>
<S S="Error">+ CategoryInfo : PermissionDenied:
(MSDHCP0037Peer:root/Microsoft _x000D__x000A_</S>
<S S="Error">/...erverv4Failover) [Add-DhcpServerv4Failover], CimException_x000D__x000A_</S>
<S S="Error">+ FullyQualifiedErrorId : WIN32 5,Add-DhcpServerv4Failover_x000D__x000A_</S>
<S S="Error">_x000D__x000A_</S>
the above powershell command internally communicates to partner server and checks the same failover name if exists or not if exists it throws exception and if not it proceed to create, but the first step i.e connecting to partner server itself is not happening hence it is saying failed to verify causing the issue can we have any such refernces of adding the failover from other remote servers
Thanks