Windows 10: PowerShell fails to launch excel with CLSID COM error

Discus and support PowerShell fails to launch excel with CLSID COM error in Windows 10 Software and Apps to solve the problem; Hi Community,Really simple issue here we cannot figure out:1. Since 2015, Microsoft released this functionality and is officially documented here2.... Discussion in 'Windows 10 Software and Apps' started by Brian Arredondo, Dec 28, 2021.

  1. PowerShell fails to launch excel with CLSID COM error


    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

    :)
     
    Brian Arredondo, Dec 28, 2021
    #1

  2. Powershell Clsid.

    Hello! I Found The Clsid For The Command Prompt, Which Is

    CommandFolder.{437ff9c0-a07f-4fa0-af80-84b6c6440a16} I Was Wondering If There Was A Powershell Clsid, And If So What Is It? Thank You!
     
    LukeRogers.{Derkaisenblundt-12-08-79-1201-00-0101}, Dec 28, 2021
    #2
  3. ddelo Win User
    Export All Administrative Events to Excel

    To analyze events, from the Windows Event Viewer, there is a simple way to export all Administrative Events to Excel, with PowerShell.

    Exporting all Administrative Events to Excel is a simple two Step process, as described here:

    Step 1 - Create the Administrative Events View .xml file
    1. Open Eventviewer (%windir%\system32\eventvwr.msc)
    2. Navigate to: Event Viewer (Local) > Custom Views > Administrative Events
    3. In the “Actions” pane select “Filter Current Custom View”.
    4. Select the the XML tab.
    5. Press Ctrl+A to select all the XML code of the Custom View.
    6. Open a notepad, paste the selected code and save the file to your Desktop as AdmEvtView.xml


    Step 2 - Create the csv file with the events
    1. Download the ExportEvtCSV.zip file, which contains the script ExportEvtCSV.ps1 and unzip it, on your Desktop.
      It's not a fancy script, just basic PowerShell commands to create a csv file on the Desktop.
    2. In Windows Search, type “ISE” (without the quotes) to open “Windows PowerShell ISE” and Run as administrator
    3. To allow running the script, change the ExecutionPolicy, for this session. To do that, in the Console pane type:
      Code:
    4. In the Windows PowerShell ISE, open and run the script: ExportEvtCSV.ps1
      The script will create a csv file with a name YYYYMMDD.HHMM.csv on the Desktop
    5. When done, open the newly created .csv file, format the columns as needed and optionally save it as .xlsx, if you wish.
    That’s it! You now have all the Administrative Events in Excel for filtering and further analysis. PowerShell fails to launch excel with CLSID COM error :)

    Now to the more technical hard stuff... *Confused

    There is a reason for running the script from within PowerShell ISE!

    It would be great if everything was also working perfectly, when running the script from an elevated PowerShell too.

    We can run it from an elevated PowerShell, which means that you just follow the Step 1, as above but for the Step 2 instead of the ISE you run the script from an elevated PowerShell.

    The problem is that it will work only for anybody who has en-US format for the dates. Everyone else, who has another format (i.e. en-GB, fr-FR, el-GR etc.), the dates are not translated properly by Excel (although the script uses the –UseCulture switch) and remain as text in the en-US format.

    I'm not sure if this a bug of the "export-csv" cmdlet, but although it runs the way it supposed to from within the ISE, from PowerShell there is a problem with the dates format.
    As I haven’t found a way to overcome this obstacle, any suggestion from the PowerShell gurus of the forum (like my good friend Shawn @Brink, for instance), is welcome.
     
    ddelo, Dec 28, 2021
    #3
  4. tjcreek55 Win User

    PowerShell fails to launch excel with CLSID COM error

    PowerShell does not launch bash.exe

    All,

    I
    am new and trying to learn.

    My
    issue: When I enter bash.exe in a PowerShell cmd window, my PC does not launch the Ubuntu command. I think Windows Subsystem for Linux (WSL) is not in my $ENVPowerShell fails to launch excel with CLSID COM error :path.

    Troubleshooting
    I have done:

    1. Reading
      on the Internet, I can test my $ENVPowerShell fails to launch excel with CLSID COM error :path by typing the following a PowerShell cmd:

    PS C:\WINDOWS\system32>
    where.exe calc

    C:\Windows\System32\calc.exe

    It returned the follow:

    PS C:\WINDOWS\system32>
    calc

    (And the calculator displayed
    on my PC)

    1. Reading
      on the Internet, I can also test my $ENVPowerShell fails to launch excel with CLSID COM error :path by typing the following a PowerShell cmd:

    PS C:\WINDOWS\system32>
    where.exe wsl

    It returned the follow:

    INFO: Could not find
    files for the given pattern(s).

    Here
    is the output of $ENVPowerShell fails to launch excel with CLSID COM error :path

    PS
    C:\WINDOWS\system32> $ENVPowerShell fails to launch excel with CLSID COM error :path

    C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
    Files (x86)\Calibre2\;C:\Program Files\PuTTY\;C:\Program Files\Microsoft VS Code\bin;C:\Users\user-lenovo595\AppData\Local\Microsoft\WindowsApps

    Question:

    What
    would you suggest as my next step to fix the issue?

    Thank
    you,
     
    tjcreek55, Dec 28, 2021
    #4
Thema:

PowerShell fails to launch excel with CLSID COM error

Loading...
  1. PowerShell fails to launch excel with CLSID COM error - Similar Threads - PowerShell fails launch

  2. Retrieving the COM class factory for component with CLSID...

    in Windows 10 Gaming
    Retrieving the COM class factory for component with CLSID...: If i try to open WD Smartware i get an error message Retrieving the COM class factory for component with CLSID {81213AB4-5937-4340-88CD-66B4BC80DF73} failed due to the following error: 8007042cIn the past this program worked well and that's why i don't open it a lot. Now i...
  3. Retrieving the COM class factory for component with CLSID...

    in Windows 10 Software and Apps
    Retrieving the COM class factory for component with CLSID...: If i try to open WD Smartware i get an error message Retrieving the COM class factory for component with CLSID {81213AB4-5937-4340-88CD-66B4BC80DF73} failed due to the following error: 8007042cIn the past this program worked well and that's why i don't open it a lot. Now i...
  4. Retrieving the COM class factory for component with CLSID...

    in Windows 10 Gaming
    Retrieving the COM class factory for component with CLSID...: The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {000209FF-0000-0000-C000-000000000046} and APPID Unavailable to the user IIS APPPOOL\Classic .NET AppPool SID...
  5. Retrieving the COM class factory for component with CLSID...

    in Windows 10 Software and Apps
    Retrieving the COM class factory for component with CLSID...: The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {000209FF-0000-0000-C000-000000000046} and APPID Unavailable to the user IIS APPPOOL\Classic .NET AppPool SID...
  6. PowerShell fails to launch excel with CLSID COM error

    in Windows 10 Gaming
    PowerShell fails to launch excel with CLSID COM error: 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...
  7. PowerShell fails to launch excel with CLSID COM error

    in Windows 10 BSOD Crashes and Debugging
    PowerShell fails to launch excel with CLSID COM error: 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...
  8. Retrieving the COM class factory for component with CLSID {ID} failed due to the following...

    in Windows 10 Customization
    Retrieving the COM class factory for component with CLSID {ID} failed due to the following...: I have installed Word perfect 2021 in windows 10 64-bit, I am getting below error when I run the applicationRetrieving the COM class factory for component with CLSID {3D24361A-2978-41AD-ABBB-F58C012DCD9B} failed due to the following error: 80080005 Server execution failed...
  9. Local Launch permission for the COM Server application with CLSID

    in Windows 10 Support
    Local Launch permission for the COM Server application with CLSID: My event viewer is full of repeating warnings. Does anybody have an idea how to resolve these? My system: (Brand new): Monitor: Acer Nitro XV272UP Motherboard: Asus TUF x570 plus with Wi Fi updated to newest bios 1.2 CPU: Ryzen 3700X GPU: Sapphire Pulse 5700 XT (19.9.2 -...
  10. granting local launch permission for COM Server application with CLSID

    in Windows 10 BSOD Crashes and Debugging
    granting local launch permission for COM Server application with CLSID: How to https://answers.microsoft.com/en-us/windows/forum/all/granting-local-launch-permission-for-com-server/08572b02-578f-4b9f-a1e9-b50517ffca76