Oct 06 2023 10:24 AM
I search for this question but couldn't find an answer. I'm not sure if anyone answered it before but i want to know how i can see what OS employees are using on TEAMS.
Oct 08 2023 07:03 AM
Solution
You could use a KQL Query in Azure LogAnalytics:
SigninLogs
| where TimeGenerated > ago(30d)
| where AppDisplayName == "Microsoft Teams"
| where ResultType == 0 //Sucessful Login
| summarize count() by UserPrincipalName, tostring(DeviceDetail.operatingSystem), UserAgent
If you want to use it in PowerShell - maybe this Blog Article will give you some jump start
https://blog.icewolf.ch/archive/2023/01/26/analyze-azuread-signin-logs-with-powershell/
Regards
Andres Bohren
Oct 09 2023 09:30 AM - edited Oct 09 2023 10:00 AM
@Andres Bohren is right about where to look for the information, so you should give him the best reply.
A simple oneliner will give you the info with PowerShell.
Import-Module Microsoft.Graph.Reports
Connect-MgGraph -Scope AuditLog.Read.All,Directory.Read.All
Get-MgAuditLogSignIn -filter 'contains(appDisplayName,"Teams")' | select -Unique userprincipalname, appdisplayname, @{label="OS"; expression={$_.devicedetail.operatingsystem} }
edited with a little improvement, it takes a few minutes to run though
-Ole
Oct 09 2023 09:39 AM
Oct 10 2023 05:59 AM