From fd3b1671e2c142df77e679a062f3f7956602c634 Mon Sep 17 00:00:00 2001 From: Corbin Date: Sat, 18 Apr 2026 08:35:34 -0400 Subject: [PATCH] Change result output format --- m365/Update-UserEntraContactInformation.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m365/Update-UserEntraContactInformation.ps1 b/m365/Update-UserEntraContactInformation.ps1 index ff1577d..5f24796 100644 --- a/m365/Update-UserEntraContactInformation.ps1 +++ b/m365/Update-UserEntraContactInformation.ps1 @@ -99,4 +99,4 @@ foreach ($User in $Users) { } # $Results | sort OfficeLocation,DisplayName | select Id,DisplayName,License,JobTitle,@{Label='BusinessPhone';Expression={$_.BusinessPhones[0]}},MobilePhone,FaxNumber,CompanyName,OfficeLocation | Out-GridView -$Results | Sort-Object OfficeLocation,DisplayName | Select-Object Id,DisplayName,License,JobTitle,@{Label='BusinessPhone';Expression={$_.BusinessPhones[0]}},MobilePhone,FaxNumber,CompanyName,OfficeLocation | Export-Csv -Path results.csv -NoTypeInformation \ No newline at end of file +$Results | Sort-Object OfficeLocation,DisplayName | Select-Object Id,DisplayName,License,JobTitle,OfficeLocation,CompanyName,Department,@{Label='BusinessPhone';Expression={$_.BusinessPhones[0]}},MobilePhone,FaxNumber | Export-Csv -Path results.csv -NoTypeInformation \ No newline at end of file