filmov
tv
LAB 6_WSA2025_How to Find User SID in Active Directory
Показать описание
TASK1_Get User SID With PowerShell
Get-ADUser -Identity tej | select name,SID
TASK2_If you know the SID but not the username you can use the below command to find the account.
$SID = "S-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-XXXX"
Get-ADObject -IncludeDeletedObjects -Filter * -Properties * | where{$_.objectSid -eq $SID}
TASK3_Get All Active Directory Users SID with PowerShell
get-aduser -filter * | select-object name, SID
TASK4_Get Users SID from a Specific OU
get-aduser -filter * -searchbase "OU=Purchasing,OU=ADPRO Users,DC=ad,DC=activedirectorypro,DC=com" | select name, SID
TASK5_Get Computer SID in Active Directory
Get-ADComputer -Filter * | Select-Object Name, SID
TASK6_Get Group SID in Active Directory
Get-ADGroup -Identity Accounting_Folders | Select-Object Name, SID
Get-ADUser -Identity tej | select name,SID
TASK2_If you know the SID but not the username you can use the below command to find the account.
$SID = "S-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-XXXX"
Get-ADObject -IncludeDeletedObjects -Filter * -Properties * | where{$_.objectSid -eq $SID}
TASK3_Get All Active Directory Users SID with PowerShell
get-aduser -filter * | select-object name, SID
TASK4_Get Users SID from a Specific OU
get-aduser -filter * -searchbase "OU=Purchasing,OU=ADPRO Users,DC=ad,DC=activedirectorypro,DC=com" | select name, SID
TASK5_Get Computer SID in Active Directory
Get-ADComputer -Filter * | Select-Object Name, SID
TASK6_Get Group SID in Active Directory
Get-ADGroup -Identity Accounting_Folders | Select-Object Name, SID