Remove printer driver package command line
Start Registry Editor. On the File menu, click Export. In the File Name box, type the name that you want to use for this key, such as WindowsNTx86regkey, and then click Save. Delete all the subkeys other than the subkeys that are listed in step 2.
To do this, right-click each subkey that is not on the list, and then click Delete. Click Yes when you are prompted to confirm the deletion.
Start Registry Editor if it is not open. The registry entries for the printer drivers that are installed on the computer are stored in the Version-x subkey or subkeys, where x is a number typically 2 or 3. Expand the Version-x subkey or subkeys, and then delete the printer driver entries. To do this, right-click each printer driver subkey, and then click Delete. Now delete any sub-keys related to the printer you are attempting to remove.
To do this, right-click the subkey that you want to remove, and then click Delete. If you have a printer attached to the computer, disconnect the printer cable from the computer, and then restart the computer. You will then want to restart your computer and reinstall any software that came with your printer.
Attach it only when prompted to during setup to ensure that a generic driver is not installed. Let us know if you have any other questions or if you require further assistance. Download Microsoft Edge More info.
Contents Exit focus mode. Remove-Printer Driver Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback? Module: PrintManagement. Deletes printer driver from the specified computer. Specifies the computer name from which to remove the printer driver. Prompts you for confirmation before running the cmdlet.
Specifies the input object that is used in a pipeline command. Specifies the name of the printer driver to remove. Specifies the printer driver environment. After that, remove remaining drivers using pnputil utility. In some cases, if some driver is not removed, add the -f switch. Open the elevated PowerShell console and allow to execute the unsigned scripts:.
The script will remove unused drivers. After its completion, restart your computer and check if everything works properly and, if necessary, reinstall the appropriate driver.
In our case, after the execution of the script the size of a folder FileRepository reduced from 11 to 1.
0コメント