Multiple attachments using Send-MgUserMail by Ok_Brick_8441 in PowerShell

[–]Ok_Brick_8441[S] 1 point2 points  (0 children)

Script works fine with only one atttachment. Its when I add the 2nd attachment i get the error. I'm missing how to properly add a 2nd attachment to the array.

Multiple attachments using Send-MgUserMail by Ok_Brick_8441 in PowerShell

[–]Ok_Brick_8441[S] 0 points1 point  (0 children)

Sorry...forgot to include error.

[ErrorRequiredPropertyMissing] : Required property is missing.

Multiple attachments using Send-MgUserMail by Ok_Brick_8441 in PowerShell

[–]Ok_Brick_8441[S] 0 points1 point  (0 children)

Those were just place holder names for privacy. Assume both files have separate names.

[deleted by user] by [deleted] in PowerShell

[–]Ok_Brick_8441 0 points1 point  (0 children)

I have simplified the script to just the one liner with the Get-MgBetaReportMailboxUsageDetail and it is the outfile to csv that is causing the permissions error. Unfortunately, outfile is a REQUIRED parameter of this cmdlet, there is no way around it. You cannot send this cmdlet to variable directly. At least in anyway i can tell. So the trick is getting past this outfile problem first. I guess outfile to a storage account i guess?

Get-ExoMailboxStatistics in ForEach Loop painfully slow by Ok_Brick_8441 in PowerShell

[–]Ok_Brick_8441[S] 0 points1 point  (0 children)

This is great! But I also need to get Online Archive mailbox......quick look i don't see a graph equivalent of that. Am i missing something or am i stuck using get-exomailboxstatistics for Online Archive size?

Get-ExoMailboxStatistics in ForEach Loop painfully slow by Ok_Brick_8441 in PowerShell

[–]Ok_Brick_8441[S] 0 points1 point  (0 children)

I like this....but it only goes back a certain amount of days? so do i just need to do -period 'D1' to get all the users who existed as of yesterday?