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?
ActivePOSH PS 3.0
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
ActivePOSH PS 3.0
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.
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.
SAPIEN Technologies, Inc.