Windows server 2003/2008 – How to set Exchange 2007 mailbox quota via powershell

Posted by aidas | Posted in Exchange 2007, Powershell, Windows 2003, Windows 2008 | Posted on 04-05-2009

0

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

Windows server 2003/2008 – How to get disabled services list via power shell

Posted by aidas | Posted in Powershell, Windows 2003, Windows 2008 | Posted on 03-05-2009

0

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”}

Windows server 2003 and Windows XP – How to export Exchange 2007 mailbox to PST file

Posted by Thomas | Posted in Exchange 2007, Powershell, Windows 2003, Windows XP | Posted on 30-04-2009

0

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

Windows server 2003 and Exchange 2007 – How to grant full access rights for the mailbox

Posted by Thomas | Posted in Exchange 2007, Powershell, Windows 2003 | Posted on 30-04-2009

0

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.