Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Convert-AzureAdObjectIdToSid.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The Object ID to convert
return $sid
}

$objectId = "73d664e4-0886-4a73-b745-c694da45ddb4"
$objectId = "796b2736-f81a-4bc3-8dd8-9cdd8b8f2dcb" # TestLocalAdminGroup
$sid = Convert-AzureAdObjectIdToSid -ObjectId $objectId
Write-Output $sid

Expand Down
4 changes: 3 additions & 1 deletion Convert-AzureAdSidToObjectId.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ The SID to convert
}


$sid = "S-1-12-1-1943430372-1249052806-2496021943-3034400218"
#$sid = "S-1-12-1-1484481183-1312765185-2161529533-2885338732" # Global Administrator role
#$sid = "S-1-12-1-1714650063-1279023240-2373304728-3448477032" # ADM_Workstations group
$sid = "S-1-12-1-3634333542-1146815947-1446741395-3659670604" # Azure AD Joined Device Local Administrator role
$objectId = Convert-AzureAdSidToObjectId -Sid $sid
Write-Output $objectId

Expand Down