none
get employeeNumber Active Directory RRS feed

  • Pregunta

  • Hello,

    I want to make requests to the active directory, and compare users by their employeeNumber. However, I can not compare them to employeeNumber since it returns the empty field. Is there any way to convert the object or get the content?

    Command without "x" private values:

    Get-ADUser -Filter * -Searchbase '.............' -Properties * | select *

    The result is:


    Then:

    $user = Get-ADUser -Filter * -Searchbase '.............' -Properties * | select *

    $user.employeeNumber is equals null

    Any Solution?

    Thanks.


    viernes, 21 de abril de 2017 6:41