New ActiveXPosh version

A new version of ActiveXPosh was uploaded to our server.

You can download it from http://www.primalscript.com/Free_Tools/index.asp

Aside from some minor fixes, it includes a new method on the interface called ‘GetValue’. With that function you can easily get the string value of some variable or property without going through the output buffer.

An example would be

pshome = ActiveXPosh.GetValue(“$PSHOME”)

or

Status = ActiveXPosh.GetValue(“(Get-Service UPS).Status”)
if(Status = “Stopped”) then
   WScript.Echo “UPS Service is stopped”
else
   WScript.Echo “UPS Service is ” & Status
end If

We also included the ComReg.exe tool with this package.
ComReg is a sample application from the Microsoft .NET SDK and it does something RegAsm does not: It registers an interop COM object for DCOM.

So by running Comreg /c activeXPosh.dll you can see ActiveXPosh in your DCOMCFNG tool and configure it so you can issue PowerShell commands to remote machines.

If you already have DCOM set up this should be a snap to add. If you do not have DCOM experience, please aware that this is not for the faint of heart. The security settings alone take quite some time to setup.