Are you a VBScript user looking to leverage some of PowerShell’s cool new capabilities – but aren’t ready to move entirely to PowerShell? Perhaps you have an older VBScript that needs some minor new functionality that you just KNOW would be easier in PowerShell – but you don’t have time to convert the entire script?
If you have PrimalScript 2007’s latest service release (build 566), then you’ve got "PrimalToys," a set of add-in COM components (look in PrimalScript’s installation folder to find the PrimalToys installer). And PrimalToys now includes "ActivePoSH," a new VBScript-accessible COM object that allows you to execute PowerShell code and get the results back as text – which can then be used elsewhere in your VBScript.
This is one of the many new items available in Build 566 of PrimalScript 2007 – check out our change log for more!
Hi,
I know that powershell is supposed to replace vbscript when it comes to administrative tasks in exchange 2007.
But I wrote an inboarding script in vbs running under IIS as ASP. It does some magic on several systems and databases.
All was working fine with Exchange 2003 untill our company upgraded to Exchange 2007. I only need PowerShell to create a new mailbox and would prefer to keep the rest in vbscript.
Is there a way to execute a single line of powershell from within an ASP page? Would the PS command be executed with the same permission as the user logged on to the ASP page?
Your help is much appreciated!!
Thanx in advance,
Joost Kuin
Hi!
Does ActivePoSH also support creating a mailbox on exchange 2007 from vbscript?
Thanx,
Joost Kuin
As far as an ASP page is concerned, it’s an ActiveX object like any other. Exchange 2007 operations should be possible without problem, but you will need to load the appropriate snapin(s) in your profile or execute the Add-PSSnapin from
within VBSPoSH.
Alex
In case anyone is interested, the saga continues at
http://support.sapien.com/forum/forum_posts.asp?TID=859&PN=1