Please feel free to provide feedback or file bugs here.

Possible bug in Exchange PowerShell Get-Group filter?

Hi,

I just noticed a strange thing. Get-User filter parameter doesn't seem to work when using a variable:

$email = user@domain.com
$dn = (Get-User $email).DistinguishedName
Get-Group -Filter { ManagedBy -eq $dn }

This returns a bunch of groups that has nothing to do with the user. It works correctly when I specify the DistinguishedName manually, e.g. ManagedBy -eq "CN=User,OU=lalala, ..."

Is this a bug in the cmdlet? Because I know that Get-ADGroup works when I use a variable in the filter.

1 vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Donatas shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Donatas commented  ·   ·  Flag as inappropriate

        PSVersion: 5.1.15063.786
        OS: Windows 10
        BuildNumber: 15063

        I can provide more information if needed.

      Feedback and Knowledge Base