EvotecIT / ADEssentials

PowerShell Active Directory helper functions to manage healthy Active Directory
MIT License
429 stars 51 forks source link

Cannot index into a null array #11

Closed zombian closed 2 years ago

zombian commented 4 years ago

When I run Show-WinADGroupMember -GroupName 'groupName' -Filepath C:\groupmembership.html all is well for all smaller groups of up to ~60 users and groups. However when I run it against a group with expected ~300+ results with many nested groups I get the error: Warning: Show-WinADGroupMember - Error processing group groupName. Skipping. Needs investigaition why it failed. Error: Cannot index into a null array I checked against another large group without any nested groups and although it took a while I did not receive that error and it worked. Is there a limit to results or number of nested groups?

PrzemyslawKlys commented 4 years ago

There is no limit. Something is wrong and we need to find out what.

What happens if you run Get-WinADGroupMember -group <yourgroup> -Verbose | ft

Where does it fail? Do you get any data? Worst case scenario I will need to add some verbose messages or you can try to debug function as it runs..

zombian commented 4 years ago

Thanks for the reply. Unfortunately, I'm not getting much, even with verbose. Here's the output:

Show-WinADGroupMember -Group 'Staff' -verbose | ft VERBOSE: Show-WinADGroupMember - requesting Staff group nested membership WARNING: Show-WinADGroupMember - Error processing group Staff. Skipping. Needs investigation why it failed. Error: Cannot index into a null array.

PrzemyslawKlys commented 4 years ago

I asked for Get- not for Show- :/)

zombian commented 3 years ago

Sorry, I didn't see your response. Here's the Show instead of Get like you had originally asked:

PS C:\WINDOWS\system32> Get-WinADGroupMember -group Staff -Verbose | ft
Cannot index into a null array.
At C:\Program Files\WindowsPowerShell\Modules\ADEssentials\0.0.86\ADEssentials.psm1:3750 char:97
+ ... ss -eq 'group') { $null } else { $UAC -notcontains 'ACCOUNTDISABLE' }
+                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : NullArray

It repeats that same line of errors for me exactly 20 times and then gives me the full list of users as intended.

PrzemyslawKlys commented 3 years ago

that's a weird one. Is there no error in regard to $UAC earlier?

zombian commented 3 years ago

No, that's the only error. I imported the module on a domain controller and logged in with an account with domain admin access and it threw more verbose errors and then ran successfully. The errors were as follows: WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type msDFSR-ReplicationGroup. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type msDFSR-ContentSet. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type msDFS-NamespaceAnchor. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type msDFS-Namespacev2. Only user,computer,group and foreignSecurityPrincipal is supported. WARNING: Get-WinADObject - Unsupported object (Staff) of type organizationalUnit. Only user,computer,group and foreignSecurityPrincipal is supported.

I am positive that the security group doesn't have members that are OUs so I'm not sure where that's coming from but ultimately it seems to run correctly.

I was running this originally from a workstation with RSAT installed and logged in as a non domain admin but I run powershell as an account with domain admin access. It is a step less than recommended Privileged Access Workstations (I am running the commands from my normal workstation rather than using an intermediary computer that I am RDPing to). My standard account also isn't a local admin but I run as a local admin account to access powershell. Because technically this was running as both local admin and domain admin I'm not sure where the issue lies but at least I have a workaround (though I don't like installing any modules on DCs).

PrzemyslawKlys commented 3 years ago

But you do have OU named "Staff". Since your request is ambigious and we're requesting all objects for a given name I am only interested in users/groups or fsp. I have exposed a warning where it matches other things with the same name tho. I may suppress this once I'm happy with the output.

PrzemyslawKlys commented 3 years ago

You don't need Domain Admin, you don't need RSAT for this command. Standard workstation will do, domain joined with PowerShell. The error you mentioned I'll fix. Otherwise it seems to act as required.

zombian commented 3 years ago

Ah, that makes so much sense. I have many OUs named staff so that is certainly the issue. Thank you for the help.

PrzemyslawKlys commented 3 years ago

Lets leave it open until i fix the other issue.

hook-365 commented 2 years ago

Here's what I get -- and it does eventually pull a list at the bottom, but cannot graph with show-

Get-WinADGroupMember -groupname "PCSetup" -verbose | ft

VERBOSE: Get-WinADObject - Requesting PCSetup ()
Index operation failed; the array index evaluated to null.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5539 char:29
+ ...                if ($Script:WinADGroupMemberCache[$MyIdentity]) { $Scr ...
+                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : NullArrayIndex

VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here] (Nesting: 0) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 0) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 0) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 0) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 0) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here (Nesting: 0) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here (DomainRedacted.org)
You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

VERBOSE: Get-WinADGroupMember - Going into [Specific OU info redacted here] (Nesting: 0) (Circular:)
VERBOSE: Get-WinADObject - Requesting [Specific OU info redacted here] (DomainRedacted.org)
You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\ahooka\Documents\WindowsPowerShell\Modules\ADEssentials\0.0.130\ADEssentials.psm1:5595 char:183
+ ... r) } else { $MembersCache[$ADGroupName.DistinguishedName]['IndirectMe ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

GroupName          Name                                           SamAccountName      DisplayName                 Enabled Type Nesting CrossForest ParentGroup                           ParentGroupDomain     
---------          ----                                           --------------      -----------                 ------- ---- ------- ----------- -----------                           -----------------     
[Information redacted for security]     
hook-365 commented 2 years ago

Eventually, I do get 78 objects returned when all is complete.

PrzemyslawKlys commented 2 years ago

Can you give me some details about the object name, DN name without revealing details.Any special chars and so on?

hook-365 commented 2 years ago

Some simple find/replace should do the trick:

VERBOSE: Get-WinADGroupMember - Going into CN=ORGANIZATIONOperations,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (Nesting: 0) (Circular:)
VERBOSE: Get-WinADObject - Requesting CN=ORGANIZATIONOperations,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (ORGANIZATION.org)
VERBOSE: Get-WinADGroupMember - Going into CN=ORGANIZATIONInfoSec,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting CN=ORGANIZATIONInfoSec,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (ORGANIZATION.org)
VERBOSE: Get-WinADGroupMember - Going into CN=ORGANIZATIONVS,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting CN=ORGANIZATIONVS,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (ORGANIZATION.org)
VERBOSE: Get-WinADGroupMember - Going into CN=ORGANIZATIONOptical,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting CN=ORGANIZATIONOptical,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (ORGANIZATION.org)
VERBOSE: Get-WinADGroupMember - Going into CN=ORGANIZATIONIS,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting CN=ORGANIZATIONIS,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (ORGANIZATION.org)
VERBOSE: Get-WinADGroupMember - Going into CN=ORGANIZATIONIT,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (Nesting: 1) (Circular:)
VERBOSE: Get-WinADObject - Requesting CN=ORGANIZATIONIT,OU=ORGANIZATIONSecurityGroups,OU=ORGANIZATIONResources,DC=ORGANIZATION,DC=org (ORGANIZATION.org)
PrzemyslawKlys commented 2 years ago

I've tried to skip on error and added verbose information to help track what may be causing this if it happens again

Get-WinADGroupMember -Group 'GroupTest1' -All -AddSelf -Verbose| Format-Table *