I work for Lenovo, and this is on behalf of one of our customers. We need some help here. Our customer has Avast Free Antivirus for business with Windows 10 and Windows Cumulative Update KB4598242 installed. (The KB is important as the problem does not occur without it.) They then install LenovoDiskExtnPackage.inf. This package updates the firmware in an NVMe solid-state drive. Per Microsoft, the extension driver creates an alternate node for the SSD, uninstalls and reinstalls the device drivers in the Disk Drive stack, including disk.sys, EhStorClass.sys, partmgr.sys, and Avast’s aswArDisk.sys. The Avast aswArDisk.sys driver fails to reinstall with the error “Access Denied”. See except from setupapi.dev below:
dvi: {Install DEVICE}
inf: {Install from INF Section - disk_install.NT} 11:46:28.768
inf: Flags - 0x001005ee
inf: {Install from INF Section - exit(0x00000000)} 11:46:28.768
dvi: {Writing Device Properties}
dvi: Strong Name=disk.inf:6d166ee9677c725c:disk_install:10.0.19041.1:gendisk
dvi: {Writing Device Properties - Complete}
inf: AddService=disk,2,disk_ServiceInstallSection,disk_EventLog_InstallSection (disk.inf line 133)
dvi: Add Service: Modified existing service ‘disk’.
inf: {Install from INF Section - disk_ServiceInstallSection} 11:46:28.784
inf: Flags - 0x00100004
inf: {Install from INF Section - exit(0x00000000)} 11:46:28.784
inf: {Install from INF Section - disk_EventLog_InstallSection} 11:46:28.784
inf: Flags - 0x00100004
inf: {Install from INF Section - exit(0x00000000)} 11:46:28.784
dvi: Controlling Service: Service ‘disk’ is required at boot, modifying filter drivers.
dvi: Filter Service: Modified service ‘EhStorClass’.
dvi: Filter Service: Modified service ‘partmgr’.
!!! dvi: Filter Service: Failed to modify service ‘aswArDisk’.
!!! dvi: Error 5: Access is denied.
!!! dvi: Error while installing services.
!!! dvi: Error 5: Access is denied.
…
ump: {Plug and Play Service: Device Install exit(00000005)}
!!! dvs: Device install failed for device.
!!! dvs: Error 5: Access is denied.
!!! dvs: Failed to install device instance ‘SCSI\Disk&Ven_NVMe&Prod_SAMSUNG_MZVLB256\5&1c7a9c2f&0&000000’. Error = 0x00000005
dvs: {Driver Setup Update Device - exit(0x00000000)} 11:46:28.815
dvs: {DrvSetupInstallDriver - exit(00000005)}
<<< Section end 2021/01/29 11:46:28.815
<<< [Exit status: FAILURE(0x00000005)]
Windows Plug-and-Play then assigns the “NULL” driver to the SSD, making it an unknown device, and the system Blue-Screens with the message “Inaccessible Boot Device”.
ump: {Plug and Play Service: Device Install for SCSI\DISK&VEN_NVME&PROD_SAMSUNG_MZVLB256\5&1C7A9C2F&0&000000}
! dvi: Installing NULL driver!
dvi: {Core Device Install} 11:47:38.949
…
dvi: {Core Device Install - exit(0x00000000)} 11:47:39.246
ump: {Plug and Play Service: Device Install exit(00000000)}
! dvs: Reboot needed to complete driver update.
!!! dvs: Failed to install device instance ‘SCSI\Disk&Ven_NVMe&Prod_SAMSUNG_MZVLB256\5&1c7a9c2f&0&000000’. Error = 0x00000005
The system is now toast; it can only be recovered by re-installing Windows. We’ve engaged Microsoft, and after studying the log, they concluded that the Windows Update and PNP architecture is working as-designed. We need some kind of software solution. The full setupapi.dev log is too big for the forum tool, but I can make it and Windows Update Storage Firmware Update package available on request. Can anybody help us out?