Import-Module PSCX using ISE

May 15, 2009 at 1:45 PM

When importing the PSCX module in the ISE I get the following error:

Exception calling "SetBufferContents" with "2" argument(s): "The method or operati
on is not implemented."
At C:\Users\Andy.Schneider\Documents\WindowsPowerShell\Modules\pscx\pscxlogo.ps1:7
9 char:33
+ $host.UI.RawUI.SetBufferContents <<<< ($origin, $buffer)
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
Looks like there needs to be a check for which host is running to be able to display the logo properly, or just not display it in ISE.

May 15, 2009 at 2:11 PM

I'm an idiot - I had already put in that check but somehow lost it again. It's fixed now and I updated the module zip on the release page. Thanks Andy!