I'm getting the following error when running Discover-PSMSSQLServers
Processing 4923 (user and computer) accounts with MS SQL SPNs discovered in AD Forest DC=domain,DC=tld
Cannot index into a null array.
At C:\Temp\Discover-PSMSSQLServers.ps1:166 char:93
+[string]$ADServiceAccountSAMAccountName = $ADServiceAccountInfo[ <<<< 0].Properties.samaccountname + CategoryInfo : InvalidOperation: (0:Int32) [], RuntimeException + FullyQualifiedErrorId : NullArray
Thank you for your time!