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?