After upgrading to v3.4 I experienced some script errors just before listing the found DCs for the domain.
I wasn't sure if significant or not, so I had to figure out what caused it.
It turned out the problem started in line 6933:
$listOfRODCsInADDomain = $dcsInADDomain | Where-Object{$_."msDS-isRODC" -eq $true -Or $_.primaryGroupID -eq "521"} | ForEach-Object{$_.dnsHostName}
Besides some regular RODCs, it returned CN=AzureADKerberos,OU=Domain Controllers,... as member of the Read-only Domain Controllers group. However, it does not have a DNS name and it causes some problems in the following loop.
The temporary fix I made was just to change -or to -and.
After upgrading to v3.4 I experienced some script errors just before listing the found DCs for the domain. I wasn't sure if significant or not, so I had to figure out what caused it.
It turned out the problem started in line 6933:
$listOfRODCsInADDomain = $dcsInADDomain | Where-Object{$_."msDS-isRODC" -eq $true -Or $_.primaryGroupID -eq "521"} | ForEach-Object{$_.dnsHostName}
Besides some regular RODCs, it returned
CN=AzureADKerberos,OU=Domain Controllers,...
as member of the Read-only Domain Controllers group. However, it does not have a DNS name and it causes some problems in the following loop.The temporary fix I made was just to change
-or
to-and
.