Get-User with userproxyfull object

Welcome Forums General PowerShell Q&A Get-User with userproxyfull object

This topic contains 1 reply, has 1 voice, and was last updated by

4 years, 2 months ago.

  • Author
  • #21555

    Points: 0
    Rank: Member

    Seasons Greetings everyone. I have the following code that finds the membership of a user object in AD LDS without problems
    get-aduser -Server localhost:50000 -Identity "CN=Rob Armitage,OU=myOrg,DC=d1,DC=ms,DC=mycompany,DC=com" `
    -partition "DC=d1,DC=ms,DC=mycompany,DC=com" -properties memberof |Where-Object {$_.memberOf -like "cn=the*"}

    However if the identity is a userproxyfull object it fails complaining that it cannot find the object.

    Many thanks

  • #21556

    Points: 0
    Rank: Member

    Update. My code seems to work with the same syntax but using get-adobject instead.


The topic ‘Get-User with userproxyfull object’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort