leeford/Get-CSSessions

Feature Request - Multiple SessionTypes and Json output

Opened this issue · 0 comments

I have modified the script for internal use to achieve output to JSON and to allow multiple SessionTypes. My one is hard coded but you can do it properly.

For JSON i used:

$AllSessions | ConvertTo-Json | Out-File -FilePath $CSVSavePath

and for multiple types i did

$UserSessions = $UserSessions | Where-Object {($_.MediaTypesDescription -like "*Audio*") -or ($_.MediaTypesDescription -like "*Video*") -or ($_.MediaTypesDescription -like "*Conferencing*") -or ($_.MediaTypesDescription -like "*AppSharing*")}

Also in the SessionType you are missing "AppSharing"