Project Description
PS2WMI is a WMI Provider that serializes results from a PowerShell script into a WMI Class.


  • .NET Framework 4.5.2
  • Windows Management Framework (WMF) 4


  • Extract the
  • Edit "PSWMIProvider.ps1" to include the PSCommand you want to see in the WMI Class
  • run setup.cmd as Admin


from PowerShell, run:
Get-WmiObject -class Win32_PSProvider | Select-Object Path, Value

and you should get the results from the "PSWMIProvider.ps1" script serialized into the WMI Class Win32_PSProvider


The Win32_PSProvider class can be included in System Center Configuration Manager's Hardware-Inventory to dynamically publish data from a PowerShell script into Inventory.


You can update "C:\Windows\System32\WBEM\PSWMIProvider.ps1" based on your needs and with next evaluation of Win32_PSProvider the results become part of the WMI Class Win32_PSProvider.

Last edited Nov 10, 2015 at 8:01 PM by rzander, version 8