Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discover-PSMSSQLServers - Cannot index into a null array #5

Open
amavarick opened this issue Nov 3, 2018 · 0 comments
Open

Discover-PSMSSQLServers - Cannot index into a null array #5

amavarick opened this issue Nov 3, 2018 · 0 comments

Comments

@amavarick
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant