Scripts

SCRIPT: Show mailbox limits

At times the user’s mailbox limits are adjusted to bypass the limits set on a store or all stores by a policy. This is done by unchecking 1) “Use mailbox store defaults” in user’s properties –> Exchange General –> Storage Limits. New values can be added for 2) “Issue warning at (KB):”, 3) “Prohibit send […]

More →

Exporting Sender Filter List

Messages from specific senders can be blocked by implementing sender filtering. Blocked senders are specified in Global Settings Message Delivery properties Sender Filtering tab (see screenshot). The Senders list is saved in the msExchTurfListNames attribute of the Default Message Filter object. It is a multi-valued attribute. It can be exported using ldifde/csvde if you take […]

More →

List users with automatic email forwarding enabled

Here’s a script written in response to a newsgroup post today on microsoft.public.exchange.admin. Exchange Server allows you to automatically forward inbound mail for one recipient to another recipient. You can forward messages to the alternate recipient, without delivering a copy to the original recipient (effectively redirecting inbound mail for the recipient), or deliver messages to […]

More →

HOW TO: Export all email addresses from a domain

Background: The Active Directory Users & Computers (ADUC) UI lets you list the mail column for each object, which displays the default (SMTP) email address for objects. You can export the list from ADUC to a CSV/txt file. However, any additional email addresses in the proxyAddresses attribute are not exported. There’s no GUI interface (in […]

More →

Getting Dell Service Tag using WMI

Need to maintain an accurate inventory of servers in datacenter. Dell servers have a Service Tag that is required when calling Dell support, and it makes sense to include this in the server list. Here’s how to retrieve the Service Tag from the system BIOS. This uses WMI, and therefore works only on Windows servers. […]

More →

Scripting: ExchangeClusterResource Class – Reply from Alain Lissoir

The ClusApi.h file, which is part of the PlatformSDK should contain this… typedef enum CLUSTER_RESOURCE_STATE { ClusterResourceStateUnknown = -1, ClusterResourceInherited = 0, ClusterResourceInitializing = 1, ClusterResourceOnline = 2, ClusterResourceOffline = 3, ClusterResourceFailed = 4, ClusterResourcePending = 128, ClusterResourceOnlinePending = 129, ClusterResourceOfflinePending = 130 } CLUSTER_RESOURCE_STATE; HTH Alain is (now) WMI Program Manager at Microsoft and […]

More →

Scripting: ExchangeClusterResource class

The WMI ExchangeClusterResource class has 5 properties: 1) Name: returns name of Exchange cluster resource 2) Type: specifies the cluster resource type (IP Address, network name, etc.) 3) Owner: specifies the cluster node that the resource is running on (changes with failover) 4) VirtualMachine: returns name of the Virtual Machine that owns the resource 5) […]

More →