$status = get-pnpdevice -InstanceId "PCI\VEN_8086&DEV_A0E3*"
if ($status -ne $null) {
  echo "Installing Intel(R) ME 15.0 Software Components for Corporate(vPro) System. Please wait..."
  pnputil.exe /add-driver .\MEI_SOL_Drivers\MEI\win10\heci.inf /install
  pnputil.exe /add-driver .\MEI_SOL_Drivers\SOL\mesrl.inf /install
  pnputil.exe /add-driver .\MESW_Components\JHI\win10\DAL.inf /install
  pnputil.exe /add-driver .\MESW_Components\LMS\LMS.inf /install
  pnputil.exe /add-driver .\MESW_Components\SOL_LMS_Extension\SOLLMSExtension.inf /install
  pnputil.exe /add-driver .\MESW_Components\WiMan\WiMan.inf /install
  pnputil.exe /add-driver .\MESW_Components\wiman_wlan_extension\wiman_wlan_extension.inf /install
  pnputil.exe /add-driver .\MESW_Components\WMIProvider\MEWMIProv.inf /install
  pnputil.exe /add-driver .\MESW_Components\ICLS\iclsClient.inf /install
}
else {
  echo "Installing Intel(R) ME 15.0 Software Components for Consumer(non-vPro) System. Please wait... "
  pnputil.exe /add-driver .\MEI_SOL_Drivers\MEI\win10\heci.inf /install
  pnputil.exe /add-driver .\MESW_Components\JHI\win10\DAL.inf /install
  pnputil.exe /add-driver .\MESW_Components\WMIProvider\MEWMIProv.inf /install
  pnputil.exe /add-driver .\MESW_Components\ICLS\iclsClient.inf /install
}

