Hi There,
i am trying to create a script which will give you the current probhitsendquota on users mailbox and convert it into bytes as show in below command then i will use the output of it and add 536870912 bytes to it and set a new send and warning quota.
$CurrentSize = (Get-Mailbox -Identity user1).ProhibitSendQuota.IConvertible.ToByte()
$RaiseSize = $CurrentSize + 536870912$WarningSize = $CurrentSize + 471859200
But unluckily when i try to set it, it wont give me any results it just sits blank, hence need an assitance where i can get the value converted to