Posts Tagged ‘Exchange 2007’

New certificate in Exchange 2007 step-by-step

Saturday, January 12th, 2008

1. step
New-ExchangeCertificate -generaterequest:1 -domainname domain.com,mail.domain.com,smtp.domain.com,pop3.domain.com -privatekeyexportable:1 -path c:\cert.txt -force:1

2. step
Import certificate request using web access to your Certification authority - logon as administrator! (WEB SERVER!!!)

3. step
Export certificate to a location on the disk… c:\certnew.crt

4. step
Import-ExchangeCertificate -path c:\certnew.cer

5. step
Enable-ExchangeCertificate -thumbprint 5ACC9A5D90E2CFDBAD6E25CD02362B8954506810 -Services “IIS,POP,SMTP,IMAP”

To remove old certificates:
Remove-ExchangeCertificate -Thumbprint …………

View all public folders recursively using Powershell in Exchange 2007

Saturday, January 12th, 2008

get-PublicFolder \ -recur

SenderID configuration using Powershell in Exchange 2007

Saturday, January 12th, 2008

Set-SenderIDConfig -Enabled $true
Set-SenderIDConfig -SpoofedDomainAction StampStatus | Reject | Delete
Set-SenderIDConfig -TempErrorAction StampStatus | Reject | Delete

Check Activesync policy settings using Powershell in Exchange 2007

Saturday, January 12th, 2008

Get-ActiveSyncMailboxPolicy -Identity “POLICYNAME”

Activesync policy to allow phone to be locked immediatly using Powershell in Exchange 2007

Saturday, January 12th, 2008

Set-ActiveSyncMailboxPolicy -identity “POLICYNAME” -MaxInactivityTimeDeviceLock:00:00:00

This script allows you to use instant “lock” on your phone…

Update safelist using Powershell in Exchange 2007

Saturday, January 12th, 2008

get-mailbox -ResultSize Unlimited | where {$_.RecipientType -eq [Microsoft.Exchange.Data.Directory.Recipient.RecipientType]::UserMailbox } | update-safelist

Add IP Blocklist provider using Powershell in Exchange 2007

Saturday, January 12th, 2008

Add-IPBlockListProvider -Name zen.spamhaus.org -LookupDomain zen.spamhaus.org -AnyMatch $True -Enabled $True -RejectionResponse “Your IP is blacklisted! http://www.spamhaus.org

This script adds new provider called zen.spamhaus.org, makes lookups to zen.spamhaus.org and it works on any reply (127.0.0.1,2 …), it does enable this provider and it sets response that is sent to sender.

Exchange 2007 increase max recieve message size

Friday, January 4th, 2008

Two Powershell cmdlets…

get-receiveconnector | select identity,maxmessagesize

set-receiveconnector “Connector Name” -maxmessagesize 30MB