Citrix Logon Simulator MP script is working when started from powershell prompt but fails from within SCOM MP

My SCOM 1807 LAB management server is configured to be the client (watcher node) has citrix received installed and IE11. When starting the powershell script from “Windows Powershell Prompt” it works fine and using the IE 11 browser connects to Citrix, logs in and starts the application. However when started from the Management Pack the script logs the following :



[11/27/2018 15:36:00.541]: *************** LAUNCHER SCRIPT BEGIN ***************
[11/27/2018 15:36:00.566]: SiteURL: http://sf.m.**/Citrix/MVDApplicationsWeb
[11/27/2018 15:36:00.569]: UserName: *****duser1
[11/27/2018 15:36:00.571]: Password: *****
[11/27/2018 15:36:00.574]: ResourceName: Write_78
[11/27/2018 15:36:00.578]: Creating Internet Explorer COM object
[11/27/2018 15:36:50.761]: Exception caught by script
[11/27/2018 15:36:50.766]: Retrieving the COM class factory for component with CLSID {0002DF01-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
[11/27/2018 15:36:50.772]: At C:\Monitoring\Citrix\Scripts\Test-CitrixApp.ps1:185 char:49

  • … rer -Value (New-Object -ComObject “InternetExplorer.Application”) -Sc …
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[11/27/2018 15:36:50.843]: *************** LAUNCHER SCRIPT END ***************

What does this error mean ? Do we need older version of Citrix Receiver ? Everything works fine the configuration file is red and I can create a view, but the script does not execute when started from the Management pack.

I had the same issue and was never able to get this to work so let me know if you figure it out.

I reached the same stage before abandoning it.

Keep meaning to look at it again when time allows!