Introduction
The HP Services Scan driver is a virtual driver automatically installed on HP devices via Windows Update during the initial boot process. While it enables specific device management and functionality, there may be scenarios where IT administrators need to remove or prevent the reinstallation of this driver to streamline device performance or align with organizational policies.
This article provides detailed instructions for:
Removing the HP Services Scan driver using Pnputil commands or an automated PowerShell script.
Blocking the driver from reinstallation through tools like WSUS, SCCM, Intune, or Group Policy.
It equips IT administrators with the necessary steps to maintain a clean, compliant device environment, while ensuring that unwanted drivers do not impact device performance or management workflows.
Option 1: Removing the Driver from the Device through Pnputil
Each component and extension driver must be removed, starting with all the component drivers.
To remove the component drivers:
1. Run 'pnputil /enum-drivers > out.txt'.
2. Open out.txt and identify all drivers with Original Name: ‘hpsvcsscancomp.inf’.
3. Note the corresponding Published Name (i.e. oem##.inf).
4. For each driver identified, run 'pnputil /delete-driver oem##.inf /uninstall'.
To remove the extension drivers:
Repeat steps 2-4 above but instead identify all drivers with Original Name: ‘hpsvcsscanext.inf’.
Option 2: Run the PowerShell Script
Download the Uninstallation PowerShell script from here or create a PowerShell script with the following steps. Once the script is created, execute the script to remove the drivers automatically:
echo "removing component drivers..."
(pnputil /enum-drivers | out-string) -split '\r\n\r\n' | ? { $_ -match 'hpsvcsscancomp.inf' } | % {
# extract oem number...
if($_ -match "oem(?<oem>\d+?)\.inf") {
$oem_number = $matches["oem"]
echo "removing oem${oem_number}.inf:"
pnputil /delete-driver "oem${oem_number}.inf" /uninstall
start-sleep -s 5
}
else {
# something went wrong
echo "Couldn't get oem# from pnputil. Please remove manually"
}
}
echo "finished removing component drivers"
echo "removing extension drivers..."
(pnputil /enum-drivers | out-string) -split '\r\n\r\n' | ? { $_ -match 'hpsvcsscanext.inf' } | % {
# extract oem number...
if($_ -match "oem(?<oem>\d+?)\.inf") {
$oem_number = $matches["oem"]
pnputil /delete-driver "oem${oem_number}.inf" /uninstall
start-sleep -s 5
}
else {
# something went wrong
echo "Couldn't get oem# from pnputil. Please remove manually"
}
}
echo "finished removing extension drivers"
echo "driver removal complete"
Disabling Windows Update for HP Services Scan
Removing the driver does not prevent Windows Update (WU) from reinstalling the driver during the next update check. This can be done by managing WU through a tool like WSUS, SCCM, or Intune to manually block the HP Services Scan driver from being deployed to the managed devices.
To uninstall the HP Services Scan Driver with Group Policy:
Open the Group Policy Management console by typing
gpmc.msc
at the command prompt on the Active Directory (AD) Domain Controller.Create a new GPO (or edit an existing one) and link it to the appropriate Organizational Unit (OU) that contains the computers on which you want to disable the HP Services Scan Driver.
Go to Computer Configuration > Policies > Administrative Templates > System > Device Installation > Device Installation Restrictions.
Double-click Prevent installation of devices that match any of these device IDs and set it to Enabled.
Check Also apply to matching devices that are already installed.
Click Show..., and add the SWC\HPTPSH000C Hardware ID.