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

 
Participant
3 years, 11 months ago.

  • Author
    Posts
  • #21555

    Participant
    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

    Participant
    Points: 0
    Rank: Member

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

    Cheers

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