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

January 15, 2013

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

July 15, 2008

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

June 15, 2007

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

December 17, 2006

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

October 4, 2006

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

September 5, 2006

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

February 5, 2005

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

January 28, 2005

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)

November 5, 2004

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 →

VBScript | SELECT CASE statement

September 20, 2004

Rather than using too many IF-THEN conditions to check a value and take action, you are better off using the SELECT CASE condition. It produces cleaner code and is specifically meant for multiple IF-THEN conditions. The correct use of SELECT CASE: Select Case strValue [strValue is the variable you want to evaluate] Case “John”… do […]

More →