当我在PowerShell命令行键入help set-aduser
时,我得到下面列出的信息。我感兴趣的财产是办公室。set-aduser属性与AD属性不同?
根据下面列出的信息,该属性被指定为-office
。但在AD命名处没有任何属性,实际上是physicalDeliveryOfficeName
。他们是否都在AD中引用相同的属性?为什么会这样,我认为我可以指定LDAP名称?
NAME
Set-ADUser
SYNOPSIS
Modifies an Active Directory user.
SYNTAX
Set-ADUser [-Identity] <ADUser>
[-AccountExpirationDate <System.Nullable[System.DateTime]>]
[-AccountNotDelegated <System.Nullable[bool]>] [-Add <hashtable>]
[-AllowReversiblePasswordEncryption <System.Nullable[bool]>]
[-CannotChangePassword <System.Nullable[bool]>] [-Certificates <hashtable>]
[-ChangePasswordAtLogon <System.Nullable[bool]>] [-City <string>]
[-Clear <string[]>] [-Company <string>] [-Country <string>] [-Department <string>]
[-Description <string>] [-DisplayName <string>] [-Division <string>]
[-EmailAddress <string>] [-EmployeeID <string>] [-EmployeeNumber <string>]
[-Enabled <System.Nullable[bool]>] [-Fax <string>] [-GivenName <string>]
[-HomeDirectory <string>] [-HomeDrive <string>] [-HomePage <string>]
[-HomePhone <string>] [-Initials <string>] [-LogonWorkstations <string>]
[-Manager <ADUser>] [-MobilePhone <string>] [-Office <string>]
[-OfficePhone <string>] [-Organization <string>] [-OtherName <string>]
[-PasswordNeverExpires <System.Nullable[bool]>]
[-PasswordNotRequired <System.Nullable[bool]>] [-POBox <string>]
[-PostalCode <string>] [-ProfilePath <string>]
[-Remove <hashtable>] [-Replace <hashtable>] [-SamAccountName <string>]
[-ScriptPath <string>] [-ServicePrincipalNames <hashtable>]
[-SmartcardLogonRequired <System.Nullable[bool]>] [-State <string>]
[-StreetAddress <string>] [-Surname <string>] [-Title <string>]
[-TrustedForDelegation <System.Nullable[bool]>]
[-UserPrincipalName <string>] [-AuthType {Negotiate | Basic}]
[-Credential <PSCredential>] [-Partition <string>] [-PassThru <switch>]
[-Server <string>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-ADUser -Instance <ADUser> [-SamAccountName <string>] [-AuthType {Negotiate | Basic}] [-Credential <PSCredential
>] [-Partition <string>] [-PassThru <switch>] [-Server <string>] [-Confirm] [-WhatIf] [<CommonParameters>]