Powershell windows10/3/2023 ![]() ![]() + If ((Get-MgBetaAdminReportSetting).Different software development tools might require specific versions of Node.js and NPM (Node Package Manager). Or if a path was included, verify that the path is correct and try again. Get-MgBetaAdminReportSetting : The term ‘Get-MgBetaAdminReportSetting’ is not recognized as the name of a cmdlet, function, script file, or operable program. # the Internet without first validating the code in a non-production environment. # Do not use our scripts in production until you are satisfied that the code meets the needs of your organization. However the output is zero on all and wonder if this is the cause of the problem?: I just ran your script after downloading it from the GitHub. ![]() You never know when this knowledge might be useful! However, writing PowerShell is never wasted time and this response allowed me to show how to use the Microsoft Graph for PowerShell SDK (V2) to download usage data and change report settings. This is a long-winded answer to a question that I thought would be quick. You can download the full script from GitHub. Update-MgBetaAdminReportSetting -BodyParameter $ParametersĬhanging the display concealed names setting is why the script needs the permission. $D180Data = Import-CSV 'c:\temp\d180.csv' | Sort-Object 'User Principal Name' $D90ata = Import-CSV 'c:\temp\d90.csv' | Sort-Object 'User Principal Name' $D30Data = Import-CSV 'c:\temp\d30.csv' | Sort-Object 'User Principal Name' $D7Data = Import-CSV 'c:\temp\d7.csv' | Sort-Object 'User Principal Name' Get-MgReportEmailActivityUserDetail -Period 'D180' -OutFile 'c:\temp\d180.csv' Get-MgReportEmailActivityUserDetail -Period 'D90' -OutFile 'c:\temp\d90.csv' Get-MgReportEmailActivityUserDetail -Period 'D30' -OutFile 'c:\temp\d30.csv' Here’s the code I wrote: Write-Output "Fetching mail activity usage report data."
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |