|
Guy recommends :
Find out which of your VMs are a waste of space and which VMs need more resources.
|
PowerShell Set-MailboxPowerShell Set-Mailbox For Exchange 2010Set-Mailbox is a handy PowerShell cmdlet for modifying an existing Exchange mailbox. When changing multiple mailboxes employ a second PowerShell cmdlet such as Get-Mailbox, then pipe its output into Set-Mailbox's input.
♣ Getting Started with Set-MailboxBefore unleashing the power of any 'Set-xyz' cmdlets, I find it safer to check with the corresponding Get-xyz first. Another technique is to wade straight in with Set-Mailbox, but append the -WhatIf parameter until you are sure that the results are what you expected. Example 1: Increase the Message Size LimitsThe only required parameter for Set-Mailbox is -Identity. As an alternative to the Exchange Alias, you could specify Distinguished name (DN) Domain\Account, User principal name (UPN), GUID, or the SmtpAddress; it makes no difference to Set-Mailbox's -Identity parameter. Set-Mailbox -Identity "GuyT" -MaxSendSize 5mb Note 1a: While -Identity is the only mandatory parameter, it's worth researching the other switches or parameters to improve your scripts. List PowerShell's Set-Mailbox ParametersGet-Help Set-Mailbox Note 1b: Other interesting parameters include the 'Archive' family, e.g. ArchiveQuota and the Forwarding family e.g. ForwardingSmtpAddress. Note 1c: Set-Mailbox -type accepts the following
values: Example 2: Piping Input with Get-UserOne of the beauties of PowerShell is piping. In this case obtain a flow of 'Managers' using another cmdlet, and stream them into Set-Mailbox so that you can manipulate their properties. Get-User -Filter "Title -eq 'Managers'" | Set-Mailbox -MaxReceiveSize 20Mb Note 2a: An alternative source cmdlet is Get-Mailbox, the piping techique would be the same as in the above script. Exchange PermissionsManipulating another user's mailbox is a responsible task. Thus before you execute the appropriate PowerShell you must be a member of these exchange groups:
Instead of the EMC try this PowerShell command: New-ManagementRoleAssignment -Role "Organization Management role" -User YourName
Guy Recommends: SolarWinds' Free Bulk Mailbox Import Tool
|
||||
Custom Search
|
Guy Recommends: WMI Monitor and It's Free!
|
|
Author: Guy Thomas Copyright © 1999-2012 Computer Performance LTD All rights reserved. Please report a broken link, or an error to: | |