Coder Social home page Coder Social logo

Comments (15)

PrzemyslawKlys avatar PrzemyslawKlys commented on August 16, 2024

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..

from adessentials.

zombian avatar zombian commented on August 16, 2024

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.

from adessentials.

PrzemyslawKlys avatar PrzemyslawKlys commented on August 16, 2024

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

from adessentials.

zombian avatar zombian commented on August 16, 2024

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.

from adessentials.

PrzemyslawKlys avatar PrzemyslawKlys commented on August 16, 2024

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

from adessentials.

zombian avatar zombian commented on August 16, 2024

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).

from adessentials.

PrzemyslawKlys avatar PrzemyslawKlys commented on August 16, 2024

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.

from adessentials.

PrzemyslawKlys avatar PrzemyslawKlys commented on August 16, 2024

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.

from adessentials.

zombian avatar zombian commented on August 16, 2024

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

from adessentials.

PrzemyslawKlys avatar PrzemyslawKlys commented on August 16, 2024

Lets leave it open until i fix the other issue.

from adessentials.

hook-365 avatar hook-365 commented on August 16, 2024

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]     

from adessentials.

hook-365 avatar hook-365 commented on August 16, 2024

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

from adessentials.

PrzemyslawKlys avatar PrzemyslawKlys commented on August 16, 2024

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

from adessentials.

hook-365 avatar hook-365 commented on August 16, 2024

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)

from adessentials.

PrzemyslawKlys avatar PrzemyslawKlys commented on August 16, 2024

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 *

from adessentials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.