I want to create a COM object, internet explorer application. The following
code works fine in PowerShell ISE (32 bit):
$ie = New-Object -com InternetExplorer.Application
But, when I try running it on Jenkins Windows server (using either the
powershell plugin or calling the PS1 with a batch file), I get the
following error.
Building on master in workspace C:\Program Files\Jenkins\workspace\Jenkins
Test[Jenkins Test] $ powershell.exe -NonInteractive -ExecutionPolicy ByPass "&
'C:\WINDOWS\TEMP\hudson7798937651532857681.ps1'"Exception calling "Windows"
with "0" argument(s): "Class not registered (Except
ion from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"At
C:\WINDOWS\TEMP\hudson7798937651532857681.ps1:3 char:59+ $ie = $(New-Object
-ComObject "Shell.Application").Windows <<<< () | ? {$_.HW
ND -eq $IEProcess.MainWindowHandle}
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ComMethodTargetInvocation
I'm using a VM at work (server 2003). I'm not sure if this is an issue with
my server permissions or if these are interactive commands being used with
a non-interactive device. Can anyone help?
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/55e15f16-f8f8-4e78-8cf6-9090b2db65af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.