Answered by:
wmi error 0x80041032 a.k.a. "Call Cancelled" , with WMI query that returns over 2K VMs

Question
-
I configured about 2200 HyperV VMs , on WS2012 R2. These VMs aren't running.
When I do a WMI query ( in c# ) , that is about equivalent to get-vm , the WMI query fails. In the event log, the error code is
0x80041032
There are no problems if e.g., the VMs are 1024 , 1100 etc., running or not. Then my cmdlet runs OK.
AFAIK, our WMI wrapper is configured with default, and max settings for buffers and timeouts.
And ideas?
-- Marteen
Answers
-
usually 0x800410xx and 0x800440xx are WMI errors. It means that a specific WMI operation failed. For instance, it could be due insufficient privileges to perform the WMI requested operation or due to the nature of the request itself or due to a WMI infrastructure issue, such as WMI DCOM registration issue.
1. You can try to rebuild the WMI Modules
At a command prompt (cmd), change to the WBEM folder.
cd %windir%\system32\wbem
Carefully type the following command to make sure that all the WBEM DLLs are correctly registered.
for /f %s in ('dir /b *.dll') do regsvr32 /s %s2. Try to rebuild the WMI Repository
=========================
a.
Disable and stop the WMI service.sc config
winmgmt start= disablednet stop
winmgmtb. At a
command prompt (cmd), change to the WBEM folder.cd
%windir%\system32\wbemc. Rename
the repository folderrename
repository repository.oldd.
Re-enable the WMI service.sc config
winmgmt start= autoe. Run
the following command to manually recompile all of the default WMI .mof files
and .mfl filescd
%windir%\system32\wbemfor /f %s
in ('dir /b *.mof *.mfl') do mofcomp %s
3. Verfity if the account you used has enough permission on WMI:
http://technet.microsoft.com/en-us/library/cc787533(v=WS.10).aspx
Meanwhile, you can verify if you can manually run the WMI query in wbemtest localy.
Thanks.
Kevin Tu
“Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.”
- Marked as answer by Andy QiModerator Wednesday, April 9, 2014 2:06 AM
All replies
-
Hi ,
Thank you for posting your issue in the forum.
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thank you for your understanding and support.
Best Regards,
Andy Qi
If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Andy Qi
TechNet Community Support -
usually 0x800410xx and 0x800440xx are WMI errors. It means that a specific WMI operation failed. For instance, it could be due insufficient privileges to perform the WMI requested operation or due to the nature of the request itself or due to a WMI infrastructure issue, such as WMI DCOM registration issue.
1. You can try to rebuild the WMI Modules
At a command prompt (cmd), change to the WBEM folder.
cd %windir%\system32\wbem
Carefully type the following command to make sure that all the WBEM DLLs are correctly registered.
for /f %s in ('dir /b *.dll') do regsvr32 /s %s2. Try to rebuild the WMI Repository
=========================
a.
Disable and stop the WMI service.sc config
winmgmt start= disablednet stop
winmgmtb. At a
command prompt (cmd), change to the WBEM folder.cd
%windir%\system32\wbemc. Rename
the repository folderrename
repository repository.oldd.
Re-enable the WMI service.sc config
winmgmt start= autoe. Run
the following command to manually recompile all of the default WMI .mof files
and .mfl filescd
%windir%\system32\wbemfor /f %s
in ('dir /b *.mof *.mfl') do mofcomp %s
3. Verfity if the account you used has enough permission on WMI:
http://technet.microsoft.com/en-us/library/cc787533(v=WS.10).aspx
Meanwhile, you can verify if you can manually run the WMI query in wbemtest localy.
Thanks.
Kevin Tu
“Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.”
- Marked as answer by Andy QiModerator Wednesday, April 9, 2014 2:06 AM
-
Hi,
i am just following up to check if any updates on this issue.
“Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.”
-
Hi,
i am just following up to check if any updates on this issue.
“Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.”