Archive for the ‘Powershell’ Category

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

Public folder configuration using Powershell in Exchange 2007

Saturday, January 12th, 2008

Set Public folder primary SMTP address:
Set-MailPublicFolder -Identity PublicFolder@contoso.com -PrimarySmtpAddress info@contoso.com

Set Public folder permissions
Add-PublicFolderClientPermission -Identity “\public@folder.com” -User Username -AccessRights Editor

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

Exchange 2007 Powershell – Test if IP Allow list provider work / Test if IP address is listed in IP Allow list provider

Wednesday, May 16th, 2007

Test-IPAllowListProvider -Identity si-whitelist.mostovna.com -IPAddress 89.212.16.82

The 646-204 and 70-620 courses are usually endorsed by 220-601 and 70-649 professionals and sometimes by 642-901 ones too.