Почему покупают? Арендуйте его с помощью SPLA ;) Более дешевый, после того как Вы рассчитываете в том, что Вы получаете обновления бесплатно.
Следующая оболочка PowerShell рассмотрит класс пользователя схемы , возьмет его атрибут allowedAttributes
, затем найдет определение каждого атрибута и вернет его диапазон Верхнее
значение.
# Need the Microsoft AD PS module
Import-Module ActiveDirectory
# Get the user class definition, include "allowedAttributes"
$userClass = Get-ADObject -SearchBase ((Get-ADRootDSE).schemaNamingContext) -Filter { Name -eq "User" } -Properties allowedAttributes
# Walk the allowedAttributes array and sort into a table with "name" and "rangeUpper"
$userClass.allowedAttributes |
ForEach-Object { Get-ADObject -SearchBase ((Get-ADRootDSE).schemaNamingContext) -Filter { LDAPDisplayName -eq $_ } -Property rangeUpper } |
Sort-Object Name |
Format-Table -Property Name, rangeUpper
# If you want to only see defined "rangeUpper" values
$userClass.allowedAttributes |
ForEach-Object { Get-ADObject -SearchBase ((Get-ADRootDSE).schemaNamingContext) -Filter { LDAPDisplayName -eq $_ } -Property rangeUpper } |
Where-Object { $_.rangeUpper } |
Sort-Object Name |
Format-Table -Property Name, rangeUpper