Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

PowerShell Script to Retrieve Top Users in Microsoft Defender via MCAS Cmdlets, Sorted in Descending Order of Total Usage #113

Open
Ef4xs opened this issue Jan 7, 2024 · 0 comments

Comments

@Ef4xs
Copy link

Ef4xs commented Jan 7, 2024

Hello, I am referring this repository : [https://github.com/microsoft/MCAS/blob/master/Functions/Get-MCASAccount.ps1.] But the thing is i did get zero output for it.

This is the PowerShell script.

$outputTable  = Get-MCASAccount -UserDomain enfrasys.com | Sort-Object -Property trafficTotalBytes -Descending |
   Select-Object -First 10 displayName, @{N='Total (GB)';E={"{0:N2}" -f ($_.trafficTotalBytes/1MB)}}

# Display the table
$outputTable | Format-Table -AutoSize

Sample Output:
displayName Total (MB)


Arvind 0.00
Asfa 0.00
Asyra 0.00
Ara 0.00
Arie 0.00
Arina 0.00
Azi 0.00
Azni 0.00
Az 0.00
Testing 0.00

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant