Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.
This repository was 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. #114

@Ef4xs

Description

@Ef4xs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions