I am attempting to write relevance to determine the existence of system restore points (volume shadow copy service) but BigFix doesn’t seem to be able to evaluate the expression. Other WMI queries work fine, but the Win32_ShadowCopy class doesn’t seem to be accessible. Any help would be appreciated.
Q: selects “InstallDate from Win32_ShadowCopy” of wmi
E: The expression could not be evaluated: Windows Error 0x80041014: Initialization failure
I can replicate this, by disabling the Volume Shadow Copy service. That would make sense as the Win32_ShadowCopy class is probably bound to the service.
Thank you both for testing, I’ve tried on multiple devices and always get the same initialization failure. The Volume Shadow Copy service is set to manual on my devices, and on some devices is not running and on others it is running, but it appears to make no difference. Interestingly, running the query in PowerShell I can successfully grab the information.
I can confirm that my experience is the same as yours when running in a non-administrative context:
-win32_shadowcopy results in an “Initialization failure” for both WMI and PS
-win32_bios returns valid data
Run in an administrative context, win32_shadowcopy returns valid data in both WMI and PS
Since the BigFix service is running as the System account I wouldn’t think that permissions should be the problem, but it certainly looks that way.
On a side note, I found some information in which it was mentioned that the VSS WMI class is architecture dependent and can have issues running correctly on a 64bit OS if accessed in a 32bit process, no idea if this is in-fact true, or relates to my situation. Just grasping at straws.