From 43816f99acdea871ba80479448eb53b2ff366c9d Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 29 May 2024 08:28:08 +0200 Subject: [PATCH] re-org --- Convert-AzureAdObjectIdToSid.ps1 | 2 +- Convert-AzureAdSidToObjectId.ps1 | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Convert-AzureAdObjectIdToSid.ps1 b/Convert-AzureAdObjectIdToSid.ps1 index a49ee6b..1aba5d6 100644 --- a/Convert-AzureAdObjectIdToSid.ps1 +++ b/Convert-AzureAdObjectIdToSid.ps1 @@ -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 diff --git a/Convert-AzureAdSidToObjectId.ps1 b/Convert-AzureAdSidToObjectId.ps1 index 18dec98..e789da1 100644 --- a/Convert-AzureAdSidToObjectId.ps1 +++ b/Convert-AzureAdSidToObjectId.ps1 @@ -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