Scripting

Use a PowerShell function to find an email address in Exchange

Exchange admins frequently need to find an Exchange recipient with a specified email address, particularly for generic organizational addresses such as [email protected] Five and a half ways to find an email address in Microsoft Exchange and Active Directory lists a few ways to do it, including PowerShell. If you do this frequently, you can add […]

More →

Windows PowerShell 3 Wins InfoWorld’s 2013 Technology Of The Year Award

Windows PowerShell 3 has won InfoWorld’s 2013 Technology of the Year award. Finally, InfoWorld editors have discovered what IT pros have known for a long time – PowerShell is simply the most powerful yet easy-to-use management tool out there on any platform! The third time is definitely the charm for PowerShell, which provides the engine […]

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 →

Displaying Client IP Address in Exchange System Manager

In Exchange Server 2003, Exchange System Manager’s Logons view for a Mailbox Store (expand Storage Group | Mailbox Store | Logons) displays client logon-related details. The default view displays 1. User name 2. Windows 2000 Account 3. Logon Time 4. Last Access Time 5. Client Version. It does not display the client IP address from […]

More →

Conflicting Mailbox Store Policies

I spent some time (ok, I’ll admit – more than “some time”… ) writing a script to get user mailbox storage limits/quotas [an improvement on the script I posted earlier – read previous post “SCRIPT: Show mailbox limits“]. The new script checks users’ individual mailbox limits (if these are set in user properties in ADUC). […]

More →

HOW TO: Get PowerShell version info

While the command ver (short for version) could get you the version info at a DOS/Windows command prompt, and winver does it in the Windows GUI, if you’re stumbling to find the version of Windows PowerShell installed on your computer, the command (cmdlet is the correct and official PowerShell term) you’re looking for is Get-Host. […]

More →

Using Consolas as the Windows console font

If you don’t like the font choices (or lack thereof) in Windows console, or want Consolas (a new font available by installing IE7 or Windows Vista) as your console font, you can add it as an option by going to HKLM\Software\Microsoft\WindowsNT\ CurrentVersion\TrueTypeFont. Scott Hanselman shows you how in this blog post. Question for the Windows […]

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 →

HTML: Add a BACK text link (Javascript)

To add a “Back” text link to a web page: <a href=”JavaScript:history.back(1)”>the past</a> Using VBScript and FORM button: <form method=”POST” name=”VBScript_Nav_Sample”> <input type=”button” name=”Go Back!” value=”VBScript_Backup_Sample” language=”VBScript” onclick=”call window.history.back(1)” /< </form> Using Javacript and FORM button: <form> <input type=”button” value=”Button” name=”B3″ onclick=”javascript:history.back(1)” /> </form> From Microsoft KB Q205693

More →