PowerGUI Editor 2.4 and AD cmdlets 1.4 compatibility issue

[UPDATE] This issue has been fixed in AD cmdlets 1.5.1 – please download the latest version of AD cmdlets here.

We have found a compatibility issue between PowerGUI Script Editor 2.4 and AD cmdlets 1.4 (these are the current versions at the time I am writing this post.)


You execute a script which is using QAD cmdlets. The first time the script executes fine. However when you try to execute it again, the script fails with the “Object reference not set to an instance of an object.” error.


The issue is related to the way QAD cmdlets are handling initialization and unloading of the snapin.


Set PowerGUI Script Editor to not reset PowerShell runspaces between the debug sessions:
1. Go to Tools / Options / Debug Options,
2. Select the Run all scripts in the same runspace option.
3. Restart PowerGUI Script Editor.

We are sorry for the inconvenience and are working on fixing the issue in the next releases.


2 Responses to “PowerGUI Editor 2.4 and AD cmdlets 1.4 compatibility issue”

  1. 1 Tom April 14, 2011 at 1:48 pm

    I am getting the error when I try to use the ‘Distribution Lists’ under ‘Recipients’ in the ‘Exchange 2007’ plugin. I am prompted for the Resultsize, but it crashes right after entering a value.
    When I look at the properties, none of the Exchange 2007 commandlets are listed under the Command list.

    Everything was working fine with the PowerGUI v2.1 that I upgraded.

    Module info:
    Microsoft.Exchange.Management.Powershell.Support v8.0.0.0

    PowerPack info:
    Exchange 2007 v2.0.0.1 (no update available)

    Thank you for your assistance.

    • 2 Dmitry Sotnikov April 15, 2011 at 7:24 pm


      Looks like you are having issues with Exchange 2007 PowerPack. Can you verify that Exchange add-on is selected in PowerGUI’s File / PowerShell Libraries?

      If this does not help, please post the question to the forum at http://powergui.org and we should be able to help you out.

      Sorry for the trouble and inconvenience.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

My Recent Tweets


The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

March 2011

%d bloggers like this: