Get-User with userproxyfull object

This topic contains 1 reply, has 1 voice, and was last updated by Profile photo of Trevor George Trevor George 1 year, 11 months ago.

  • Author
    Posts
  • #21555
    Profile photo of Trevor George
    Trevor George
    Participant

    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
    Profile photo of Trevor George
    Trevor George
    Participant

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

    Cheers

You must be logged in to reply to this topic.