Загрузка данных


Для пользователей:

powershell
Get-ADUser -LDAPFilter "(&(servicePrincipalName=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(!(msDS-SupportedEncryptionTypes:1.2.840.113556.1.4.804:=24)))" -Properties ServicePrincipalName, msDS-SupportedEncryptionTypes | Select-Object Name, SamAccountName, ServicePrincipalName, msDS-SupportedEncryptionTypes
Для компьютеров:

powershell
Get-ADComputer -LDAPFilter "(&(servicePrincipalName=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(!(msDS-SupportedEncryptionTypes:1.2.840.113556.1.4.804:=24)))" -Properties ServicePrincipalName, msDS-SupportedEncryptionTypes | Select-Object Name, SamAccountName, ServicePrincipalName, msDS-SupportedEncryptionTypes