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