This post will show how to use get-mailbox and set-mailbox cmdlets to set mailbox quota for all mailboxes in OU “TestUsers” using powershell. We will set warning quota to 200Mb, prohibit send to 400Mb and prohibit send\receive quota to 600Mb. To implement it open powershell on you Windows server 2003 and type:
Get-Mailbox -OrganizationalUnit “TestUsers” | Set-Mailbox -IssueWarningQuota 209715200 -ProhibitSendQuota 419430400 -ProhibitSendReceiveQuota 629145600 -UseDatabaseQuotaDefaults $false
This post will show how to get services list whose StartMode is set to disabled via power shell. Open power shell in Windows server 2003 or 2008 and type:
gwmi win32_service | where {$_.StartMode -eq “Disabled”}
In this article you`ll learn how to export Exchange 2007 mailbox to PST file using power shell on your Windows XP or Windows server 2003 machines.
For that task you must have power shell and Outlook 2003 with SP2 or Outlook 2007 installed.
In this example we need to export mailbox for user TestUser@mydomain.com to local folder D:\PST
Open power shell and type:
Export-Mailbox -Identity TestUser@mydomain.com -PSTFolderPath D:\PST\TestUser.pst
This example will show how to grant full access rights to specific mailbox using power shell on Windows server 2003 with Exchange 2007 installed.
You want user Admin to have full access over mailbox named TestUser.
Open Power Shell extention for exchange and type:
Add-MailboxPermission -Identity TestUser -User Admin -AccessRights FullAccess
To make it work your user (Admin in this example) must be member of Exchange Administrators and Local administrators groups.