문제

With this command :

get-mailbox -identity JSMITH | select ProhibitSendQuota

i get the ProhibitSendQuota for my mailbox JSMITH

I want to add 50 MB to the ProbitiSendQuota with just one powershell command line

I have to use this command

set-mailbox -identity JSMITH -ProhibitSendQuota MyNewQuota

So what is the command to get the actual ProhibitSendQuota and had it 50 Mb ? I think it's something like this but I don't know the exact syntax

get-mailbox -identity JSMITH | set-mailbox -identity $_.name -ProbibitSendQuota {($_.ProbititSendQuota) * 50 * 1024}

Someone have a solution ?

Thx

도움이 되었습니까?

해결책

Get-Mailbox -Identity jsmith | foreach{ $_ | Set-Mailbox -ProhibitSendQuota ($_.ProhibitSendQuota+50mb)}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top