Windows error 0x80041005, -2147217403

Detailed Error Information

HRESULT analysis[1]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode4 (0x004)
NameFACILITY_ITF[1][2]
DescriptionThe source of the error code is COM/OLE Interface management.[1][2]
Error Code4101 (0x1005)

Questions

8votes
3answers

SCCM Global Condition WQL Query Type Mismatch (wbemErrTypeMismatch - 0x80041005)

We have been handling all of our targeting logic for Packages (and now Applications) with Collections. Now that we have moved from SCCM 2007 to SCCM 2012 SP1 it was recommended that we move that logic to the Application-Program model and implement it using Global Conditions and Requirements. This has [...] read more
sccm-2012
wmi
2votes
1answer

Casting parameters inside CIMInstance

I'm playing around with the Hyper-V WMI interface and am trying to create a snapshot of one of my local Hyper-V VMs, using C#. I'm trying to do this WITHOUT using System.Management. Instead, I'm using using Microsoft.Management.Infrastructure. Reason for this is that it is supported on .NET Core. Also, the [...] read more
c#
wmi
hyper-v
cim
0votes
1answer

Invoke-WMIMethod convert to Invoke-CimMethod with ciminstance as Argument error

So, trying to trigger a software update in SCCM with Invoke-CimMethod instead of Invoke-WMIMethod. WMIMethod Works: $UpdateID = 'Site_1EED8E47-D4D8-4823-883C-4FFE753FA233/SUM_0af47e05-17cb-4756-8610-09ce486df1ba' $FeatureUpdate = Get-WmiObject -Namespace Root\CCM\ClientSDK -Class CCM_SoftwareUpdate -Filter "UpdateID like '$UpdateID'" Invoke-WmiMethod -Namespace Root\ccm\clientSDK -Class CCM_SoftwareUpdatesManager -Name InstallUpdates -ArgumentList $FeatureUpdate Note that $FeatureUpdate is a instance of an update: $FeatureUpdate.GetType() IsPublic [...] read more
powershell
wmi
sccm
0votes
1answer

WMI Folder Add ACL Type Mismatch

I am attempting to write a small application to update folder permissions. I have written the following code to remove oldGroup and add in newGroup. When I call InvokeMethod I catch an exception HRESULT 0x80041005 - Type Mismatch. Not very helpful! If I comment out newAces.Add(newAce); the old group is [...] read more
c#
.net-core
wmi
acl
0votes
1answer

Type Mismatch error when entering CIM_DATETIME in wbemtest

I'm trying to execute a WMI method using wbemtest.exe. I've selected the method in the select box, clicked the "Edit In Parameters", and I'm presented with "Object editor for __PARAMETERS". From there I select the parameter with type "CIM_DATETIME", and click "Edit Property" to be presented with the "Property Editor" [...] read more
wmi
wbem
0votes
1answer

Silverlight 5 Trusted Application EnumKeys StdRegProv keeps getting Type Mismatch

I have a signed, trusted application in Silverlight 5 (and know its working correctly and AutomationFactory is enabled). However, no matter what I do, I get a COM exception of type mismatch, which is no help, when I try to query the registry. Windows 7 IE8. {System.Runtime.InteropServices.COMException (0x80041005): Exception from [...] read more
c#
silverlight
com
registry
wmi

Comments

Leave a comment

(plain text only)

Sources

  1. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  2. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0