$UserName = "UserAffected@X.onmicrosoft.com"
$password = "UserAffectedPassword" | ConvertTo-SecureString -asPlainText -Force
$credential = New-Object PSCredential($userName, $password)
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $credential -Authentication Basic -AllowRedirection
Import-PSSession $session
Get-Mailbox $userName | Get-MailboxStatistics | FL
$AdminAccount = "UserAffected@X.onmicrosoft.com"
$AdminPassword = "UserAffectedPassword" | ConvertTo-SecureString -asPlainText -Force
$TargetMailbox = "target-mailbox@X.onmicrosoft.com"
$credential = New-Object PSCredential($AdminAccount, $AdminPassword)
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $credential -Authentication Basic -AllowRedirection Import-PSSession $session Get-Mailbox $TargetMailbox | Set-Mailbox -IssueWarningQuota "98 GB" -ProhibitSendQuota "99 GB" -ProhibitSendReceiveQuota "100 GB"
Get-Mailbox $TargetMailbox | select IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center