Hello
Thank you for posting in Microsoft Community forum!
The error message "Element not found. (Exception from HRESULT: 0x80070490)" is often associated with issues related to COM (Component Object Model) and can be tricky to diagnose. However, one common cause of this error is missing or corrupted COM components or registry entries. Here are steps you can take to address this issue:
Check COM Components:
- Open the "Component Services" management console. You can do this by pressing Windows + R, typing dcomcnfg, and hitting Enter.
- In the Component Services window, expand "Component Services," "Computers," and then "My Computer."
- Right-click on "DCOM Config" and select "Properties."
- Go through the list of components and see if any have issues. Pay attention to components that may be related to the tasks you're trying to execute.
- If you identify any problematic components, try to reconfigure or repair them if possible.
Registry Check:
- Some COM components are registered in the Windows Registry. Check for any issues related to these components:
- Press Windows + R, type regedit, and press Enter.
- Navigate to HKEY_CLASSES_ROOT\Wow6432Node\CLSID for 32-bit components, or HKEY_CLASSES_ROOT\CLSID for 64-bit components.
- Check if there are any orphaned or problematic entries related to the COM components. If found, you may need to clean them up.
Windows Update:
- Ensure your system is up to date with the latest Windows updates. Sometimes, Microsoft releases updates that address COM-related issues.
Check PowerShell Execution Policies:
- Make sure your PowerShell script execution policy is not too restrictive. You can check it by running Get-ExecutionPolicy in PowerShell. If it's set to "Restricted," you might need to change it to "RemoteSigned" or "Unrestricted" using Set-ExecutionPolicy.
Reinstall Affected Components:
- If you've identified specific COM components causing the issue, you may need to reinstall them. Consult the documentation or the provider of the components for guidance on how to do this.
Check Group Policies:
- Review any Group Policies that might affect the execution of PowerShell scripts or COM components. Ensure there are no policies that restrict or block these actions.
Best Regards,
Wesley Li