Hi Jose I got this below error Get-ADGroupMember : Directory object not found At line:1 char:30 + ($PoolEntitlments | foreach {Get-ADGroupMember $_.distinguishedName}) + ...
See more...
Hi Jose I got this below error Get-ADGroupMember : Directory object not found At line:1 char:30 + ($PoolEntitlments | foreach {Get-ADGroupMember $_.distinguishedName}) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (CN=ab test05,OU...ten,DC=co,DC=jp:ADGroup) [Get-ADGroupMember], ADIdentityNotFoundExcep tion + FullyQualifiedErrorId : ActiveDirectoryCmdlet:Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException,Microsoft.ActiveD irectory.Management.Commands.GetADGroupMember After I run the below code $entitledusers = ($PoolEntitlments | foreach {Get-ADGroupMember $_.distinguishedName | where {$_.objectclass -eq 'user'}}).count I have installed the RSAT module.