I Get a error on the ComObject MonitorSwitcherGUI.Application. Can someone help me with this.
Here is de error i get:
New-Object : Retrieving the COM class factory for component with CLSID {00000000-0000-0000-0000-000000000000} failed
due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
I Get a error on the ComObject MonitorSwitcherGUI.Application. Can someone help me with this.
Here is de error i get:
New-Object : Retrieving the COM class factory for component with CLSID {00000000-0000-0000-0000-000000000000} failed
due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
$applicatie = New-Object -ComObject "MonitorSwitcherGUI.Application"
$xml1 = "C:\Intune\MonitorSwitcherGUI\MGD_Laptop_Links.xml"
$xml2 = "C:\Intune\MonitorSwitcherGUI\MGD_Laptop_Rechts.xml"
$applicatie.Import($xml1)
$applicatie.Import($xml2)