PowerShell fails to launch excel with CLSID COM error

B

Brian Arredondo

Hi Community,Really simple issue here we cannot figure out:1. Since 2015, Microsoft released this functionality and is officially documented here2. When we try to run the command in PowerShell below this is what happens:$excel = New-Object -ComObject Excel.ApplicationNew-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)). + CategoryInfo : ResourceUnavailable: :)) [New-Object], COMException + FullyQualif

Continue reading...
 
Back
Top Bottom