Showing posts with label Exchange 2007. Show all posts
Showing posts with label Exchange 2007. Show all posts

Friday, November 9, 2012

Grand a user permission to send to Everyone

Grant a user permission to send to the everyone group. 

1. Open properties of everyone Group in EMC.
2. Open MailFlow Settings.
3. Open MessageDeliveryRestrictions
4. Add user

Tuesday, January 3, 2012

PowerShell Script to list daily health checks of all Exchange 2007 Servers.

$ExchServer=Get-ExchangeServer
foreach ($Server in $ExchServer)
{
echo $Server.name (Test-ServiceHealth $Server)
}


SMTP Port 25

Tuesday, September 13, 2011

Exchange 2007: Fowad all Mail

This is the Procedure to forward all mail from one Exchange 2007 mailbox to another mailbox without leaving a copy on the original recipient mailbox. 

Exchange management Shell:

Set-Mailbox -Identity "John Smith" -ForwardingAddress "sara@contoso.com"

Use following ccmlet to forward all mail while leaving a copy on the original recipient mailbox. 

Set-Mailbox -Identity "John Smith" -ForwardingAddress "sara@contoso.com" -DeliverToMailboxAndForward $true

Exchange Management Console:

1.   In the console tree, expand Recipient Configuration, and then click Mailbox.

2.  In the result pane, right-click the mailbox for which you want to configure mail forwarding and click Properties.

3.  In <Mailbox> Properties, on the Mail Flow Settings tab, click Delivery Options, and then click Properties.

4.  Click the Forward to check box. This enables the Browse button.

5.  Click Browse to open the Select Recipient dialog box. Select the recipient to whom you want to forward messages, and then click OK.

6.  If you want incoming messages to be delivered to the mailbox as well as to the forwarding address configured, select the Deliver message to both forwarding address and mailbox check box. Clear this check box to forward all incoming messages without retaining copies in the mailbox.

7.  Click OK to return to <Mailbox> Properties.

8.  Click OK.

Friday, April 8, 2011

Exchange 2007 PS Script to purge W3SVC1 logs

We have had issues where the IIS logs have been filling up our C drive on both our Mailbox Servers . This is the result of IIS web and Active Sync activity. The following PowerShell Script will purge logs older than 5 days as scheduled Windows Task. 

get-childitem -Path C:\inetpub\logs\LogFiles\w3svc1 -recurse | where-object {$_.lastwritetime -lt (get-date).addDays(-5)} | Foreach-Object { del $_.FullName }

Thanks to the exchange 2007 Technet forums. 

Wednesday, April 6, 2011

Exchange 2007 Clean-MailboxDatabase

When Active Directory accounts are disabled, associated mailboxes are disconnected, but do not show up under the Disconnected Mailxed under Exchange Management console.  Issue the following in the Exchange Management Shell. 

Clean-MailboxDatabase -identity db1


http://technet.microsoft.com/en-us/library/bb124076%28v=exchg.80%29.aspx

Exchange 2007 MailboxSize

From time to time we have to look report on the size of user Mailboxes, so this script will report the size of each mailbox. You can change the "TotalitemSize(MB) to GB if you want to report as Gigs.  The default is repoarted as kb.  This reports on a per mailbox server bases.

I like to write the results to a text file, that way I can then compare the text files using compare-object cmdlet to see how MailboxSize change. 

Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}},ItemCount | out-file C:\temp\mb1.txt

Exchange 2007 Database Size

This is a good way to report on Exchange 2007 database sizes.  ThisPowershell Script reports on the number of users per database.  I found the script in my notes and don't know who to give credit to.  

Get-MailboxDatabase | Select Server, StorageGroupName, Name, @{Name="Number Of Mailboxes";expression={(Get-Mailbox -Database $_.Identity | Measure-Object).Count}} | Format-Table -AutoSize

I like to write results to a text file, so I changed the Format-Table cmdlet to Out-File C:\temp\DbSize.txt