$extendedProperties = Get-ADObject -Identity $user.DistinguishedName -Properties Description 代码语言:txt 复制 最后,通过访问$extendedProperties对象的Description属性,即可获取用户对象的描述信息: 代码语言:powershell 复制 $description = $extendedProperties.Description 代码语言:txt 复制 这样,$description变量中就...
我不知道如何根据比较对象或匹配将我想要的属性提取到新变量中。description属性非常具有用户名- ###编号的设置。$SevenDayWarnDate = (get-date).adddays(7).ToLongDateString() $7=Get-ADUser-filter {Enabled -eq $True-and PasswordNeverExpires -e 浏览1提问...
AD域PowerShell常用命令——Get-ADuser GET-ADUser:获取指定的用户对象或进行搜索,以获取多个用户对象。 1.获取dc中所有的用户,导出为csv格式并保存到指定的路径下. 举例:Get-ADUser -filter * |export-csv 保存路径 -Encoding utf8 2.获取某一用户的所有AD属性,导出为csv格式并保存到指定的路径下. 举例:Get-A...
Description TheGet-ADUsercmdlet gets a specified user object or performs a search to get multiple user objects. TheIdentityparameter specifies the Active Directory user to get. You can identify a user by its distinguished name (DN), GUID, security identifier (SID), or Security Account Manager (...
Description TheGet-ADUsercmdlet gets a specified user object or performs a search to get multiple user objects. TheIdentityparameter specifies the Active Directory user to get. You can identify a user by its distinguished name (DN), GUID, security identifier (SID), or Security Account Manager (...
Detailed DescriptionThe Get-ADUser cmdlet gets a user object or performs a search to retrieve multiple user objects.The Identity parameter specifies the Active Directory user to get. You can identify a user by its distinguished name (DN), GUID, security identifier (SID), Security Accounts Manager...
4. Description - 对象描述。 5. DisplayName - 显示名称。 6. givenName - 名字。 7. initials - 缩写名称。 8. Name - 标识名称。 9. objectCategory - 对象分类。 10. objectClass - 对象类。 11. sAMAccountName - 安全帐户管理器(SAM)帐户名称。 12. sn - 姓氏。 13. userPrincipalName - 用户...
Detailed DescriptionThe Get-ADUser cmdlet gets a user object or performs a search to retrieve multiple user objects.The Identity parameter specifies the Active Directory user to get. You can identify a user by its distinguished name (DN), GUID, security identifier (SID), Security Accounts Manager...
Detailed DescriptionThe Get-ADUser cmdlet gets a user object or performs a search to retrieve multiple user objects.The Identity parameter specifies the Active Directory user to get. You can identify a user by its distinguished name (DN), GUID, security identifier (SID), Security Accounts Manager...
Detailed Description The Get-ADUser cmdlet gets a user object or performs a search to retrieve multiple user objects. The Identity parameter specifies the Active Directory user to get. You can identify a user by its distinguished name (DN), GUID, security identifier (SID), Security Accounts Mana...