Storage Management Provider - Missing Files in SDK

Applies to: Windows Server 2012 R2 StandardWindows Server 2008 R2 StandardWindows 8

Symptoms


During Storage Management Provider (SMP) development, when using the tool Convert-MofToProvider.exe to generate provider stub, the tool returns the following error: 

storagewmi_provider.mof(28): failed to find inlude file: "msft_storagereliabilitycounter.mof"

Cause


A file storagewmi_provider.mof is missing from Windows 8 SDK.

Resolution


Download the missing file storagewmi_provider.mof and place the file under the same directory of other SMP MOF files before attempting provider stub generation.

To download the storagewmi_provider.mof file, click the following Microsoft Download Center website:

Windows Server 2008 and Windows Server 2012
http://download.microsoft.com/download/7/5/A/75A4BF53-106F-44E0-900A-67ABD49A11EF/msft_storagereliabilitycounter.mof.


Windows Server 2008 R2 and Windows Server 2012 R2

http://download.microsoft.com/download/E/5/D/E5DEED97-B850-4F9A-B660-4AAABE55A931/msft_filestoragetier.mof

http://download.microsoft.com/download/E/5/D/E5DEED97-B850-4F9A-B660-4AAABE55A931/msft_storageenclosure.mof
Note: Developers must place these files under the same directory of other SMP MOF files before attempting provider stub generation.

More Information


For a full list of files required in SMP development, please refer to Development Resource Checklist section in the following MSDN whitepaper:
http://msdn.microsoft.com/en-us/library/windows/hardware/hh975391.aspx