Get-aduser in Active Directory which of the cmdlets calls is the attribute of the account?

Source: Internet
Author: User
Tags samaccountname

Get-aduser is the most commonly used cmdlets for Active Directory management, but it is often not possible to transfer to an account in everyday applications. The most common reason for this problem is the duplicate name. The first issue is to clarify a problem get-aduser+ account does not equal the search function in Ad Manager (the search must use the –filter parameter). But Get-aduser should enter the account's attribute to get to this user exactly?

Let's give an example:

There are two accounts in the organization called Zhangpeng, one of which is not visible here:

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/5c/28/wkiom1ublq2zvmtbaadu4nxjqx0448.jpg "height="/>

As can be clearly seen from the figure below, the sAMAccountName attribute of the account is actually called, and this attribute is unique within the AD organization. :

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/5c/23/wkiol1ubl-7jw3lraadzkgatn8e583.jpg "height=" 192 "/>

But what method can be used to transfer both properties at the same time?

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/5c/23/wkiol1ubl-_xzhshaagcf5ipm4u784.jpg "height=" 305 "/>

From the above example can also be concluded that the name attribute of the ad account can be duplicate, but sAMAccountName is unique

This article is from the "operation and maintenance of life" blog, please make sure to keep this source http://lixiaosong.blog.51cto.com/705126/1627310

Get-aduser in Active Directory which of the cmdlets calls is the attribute of the account?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.