ActivePOSH PS 3.0

This forum can be browsed by the general public. Posting is no longer allowed as the product has been discontinued.
User avatar
slittle
Posts: 8
Joined: Thu Oct 13, 2011 12:09 pm

ActivePOSH PS 3.0

Post by slittle »

Now that 3.0 has been released by MS, I tried running a simple script through ActivePOSH:

#requires -version 3.0
$hsg = Invoke-WebRequest -Uri http://www.scriptingguys.com/blog
$hsg.Links | Where class -eq 'internal-link view-post' | select outertext, href | Out-GridView

receiving only error messages
Invoke-WebRequest : The term 'Invoke-WebRequest' is not recognized as the name
of a cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try ag
ain.

At line:2 char:25
+ $hsg = Invoke-WebRequest <<<< -Uri http://www.scriptingguys.com/blog
+ CategoryInfo : ObjectNotFound: (Invoke-WebRequest:String) [], C
ommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Where : Cannot bind parameter 'FilterScript'. Cannot convert the "class" value
of type "System.String" to type "System.Management.Automation.ScriptBlock".

At line:3 char:19
+ $hsg.Links | Where <<<< class -eq 'internal-link view-post' | select outerte
xt, href | Out-GridView
+ CategoryInfo : InvalidArgument: (:) [Where-Object], ParameterBi
ndingException
+ FullyQualifiedErrorId : CannotContinue


Is this due to how PS 3.0 was installed or a limitation of the ActiveX?

User avatar
Alexander Riedel
Posts: 7457
Joined: Tue May 29, 2007 4:43 pm

ActivePOSH PS 3.0

Post by Alexander Riedel »

The way PowerShell is designed and versioned you cannot create a host that simply uses the latest engine. Any custom host, like ActiveXPosh, must be specifically built against the particular engine and .NET framework used.

Even though Microsoft released PowerShell V3 ahead of Windows 8, likely to be available for Windows 2012 Server, it still has a number of problems that we are working around or verifying before we can release anything that supports this new version.

We will release new versions of all our software as soon as possible but that moment there is no specific date set.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
slittle
Posts: 8
Joined: Thu Oct 13, 2011 12:09 pm

ActivePOSH PS 3.0

Post by slittle »

Thank you.