Hello @Darko Kljajic Thank you for posting this concern on this community space. I have read your whole case scenario description and I just wanted to share my 2 cents down below:
- Get-CsOnlineUser | Where-Object { $_.LineURI -notlike $null } | select DisplayName,UserPrincipalName, LineURI, OnPremLineURI, Office | Export-Csv -NoTypeInformation -Path C:\Users\user001\Desktop\Powershell\userinventory.csv You can modify it as the way you require it. Looking forward to your feedback, Cheers, Please "Accept the answer" if the information helped you. This will help us and others in the community as well.