PowerShell

Disable Antispam agents on a Receive Connector

Exchange 2007’s antispam agents are enabled for all Receive Connectors on a transport server. Is there a way to disable the agents on a particular Receive Connector? Although not as simple as turning an agent off for each IP address or Receive Connector, Exchange 2007’s new transport permissions model allows you to do this just […]

More →

Resource Mailbox Calendar Settings: Configuring resource mailboxes using OWA

Have you been using the Set-MailboxCalendarSettings cmdlet to configure scheduling settings for resource mailboxes? Wish there was a graphical interface to configure these settings? [PS] C:\>get-mailboxcalendarsettings cf-oahu | fl AutomateProcessing : AutoAcceptAllowConflicts : FalseBookingWindowInDays : 180MaximumDurationInMinutes : 1440AllowRecurringMeetings : TrueEnforceSchedulingHorizon : TrueScheduleOnlyDuringWorkHours : FalseConflictPercentageAllowed : 0MaximumConflictInstances : 0ForwardRequestsToDelegates : TrueDeleteAttachments : TrueDeleteComments : TrueRemovePrivateProperty : […]

More →

Configuring Deleted Item Retention

After a user empties the Deleted Items folder, although these items disappear from the view of the mailbox, they are not completely deleted. They are retained till the Deleted Item Retention period expires in what’s fondly referred to as the Dumpster— not to be confused with the Transport Dumpster maintained by Hub Transport servers. Deleted […]

More →

SCRIPT: Get Storage Group Backup Status

Exchange 2007 Mailbox Databases expose backup-related properties using the Get-MailboxDatabase cmdlet: Get-MailboxDatabase “My Database” -status | select *backup* | fl What you get back:BackupInProgress :SnapshotLastFullBackup :SnapshotLastIncrementalBackup :SnapshotLastDifferentialBackup :SnapshotLastCopyBackup :LastFullBackup :LastIncrementalBackup :LastDifferentialBackup :LastCopyBackup : Here’s a quick shell script that dumps each Storage Group and its backup-related information. I haven’t had the time to build in […]

More →

HOW TO: Prevent annoying spam from your own domain

One of the more annoying types of spam is the one that seems to be coming from your own domain; or worse— from your own email address! Of course, users from your own domain don’t generally spam each other— unless you’re using one of the free web-based email services. And most of us don’t spam […]

More →

Delay Notifications: Informing users about delays in mail delivery

Users consider email to be a reliable communication mechanism – not as reliable as the dial tone, but pretty close. Most users expect mail to be delivered within minutes, if not seconds. Many organizations, including those operating in the financial & banking sectors, have strict SLAs for mail delivery which specify mail delivery times granularly— […]

More →

PowerShell: Listing multi-valued attributes

In previous posts, we’ve taken a look at how to update multi-valued attributes and remove values from multi-valued attributes using PowerShell/Exchange Shell (EMS). Multi-valued attributes have a special significance in AD, and interfaces/APIs used to access AD. Whereas single-valued attributes can be retrieved and updated quite easily, multi-valued attributes come with a twist. Values from […]

More →

Where are mailbox last logon, client IP address and other details in Exchange 2007 & Exchange 2010?

In Exchange Server 2003/2000, expanding a Mailbox Database (MDB) provides information about mailboxes in a database, last logon/logoff times and account(s) that logged on to mailboxes (see ‘Displaying Client IP Address in Exchange System Manager‘ for details). Figure 1: In Exchange 2003, the Logons node displays Store logon-related information. Click here to see a bigger […]

More →

Script: Listing Distribution Groups a recipient is a member of

It’s easy to get a list of all members of a Distribution Group. The Exchange shell (EMS) ships with the Get-DistributionGroupMember cmdlet that makes it a short one-liner (compared to 100s of lines of code in VBS). However, how do we get all Distribution Groups a user, group, or contact is a member of? There’s […]

More →

Creating a Dynamic Distribution Group for all mailboxes on a Database

I posted about this in Adventures with OPATH: some annoyances if you’re used to LDAP, shortly after Exchange Server 2007 RTMed (Yes, it has really been that long… ). Here’s a quick recipe to create a Dynamic Distribution Group to include all mailboxes on a database. $DB = (Get-MailboxDatabase “SERVER\Storage Group\Mailbox Database”).distinguishedName New-DynamicDistributionGroup MyGroup -RecipientFilter […]

More →