From 60829641073d68c36fb946740284cfeec8a8dd36 Mon Sep 17 00:00:00 2001 From: sholland-bamboohealth Date: Thu, 27 Jan 2022 13:57:38 -0500 Subject: [PATCH 1/2] Add Displayname to service principle. --- Get-CRTReport.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Get-CRTReport.ps1 b/Get-CRTReport.ps1 index d893e3b..b61febb 100644 --- a/Get-CRTReport.ps1 +++ b/Get-CRTReport.ps1 @@ -1633,6 +1633,7 @@ if ($continue) { $ObjectProperties = [Ordered]@{ "ObjectId" = ($obj.ObjectId | Out-String).Trim() "AppId" = ($obj.AppId | Out-String).Trim() + "DisplayName" = ($obj.DisplayName | Out-String).Trim() "StartDate" = ($KeyCred.StartDate | Out-String).Trim() "EndDate" = ($KeyCred.EndDate | Out-String).Trim() "KeyId" = ($KeyCred.KeyId | Out-String).Trim() From 6e29867eef284ee7328f50d19019ecf4ffc38c95 Mon Sep 17 00:00:00 2001 From: sholland-bamboohealth Date: Thu, 27 Jan 2022 13:59:29 -0500 Subject: [PATCH 2/2] Fix Formatting --- Get-CRTReport.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Get-CRTReport.ps1 b/Get-CRTReport.ps1 index b61febb..4a9441d 100644 --- a/Get-CRTReport.ps1 +++ b/Get-CRTReport.ps1 @@ -1633,7 +1633,7 @@ if ($continue) { $ObjectProperties = [Ordered]@{ "ObjectId" = ($obj.ObjectId | Out-String).Trim() "AppId" = ($obj.AppId | Out-String).Trim() - "DisplayName" = ($obj.DisplayName | Out-String).Trim() + "DisplayName" = ($obj.DisplayName | Out-String).Trim() "StartDate" = ($KeyCred.StartDate | Out-String).Trim() "EndDate" = ($KeyCred.EndDate | Out-String).Trim() "KeyId" = ($KeyCred.KeyId | Out-String).Trim()