PDQ Deploy–Remove default Fax and MS XPS Document Printer

IC71333

When you first install Windows 10 Education or Enterprise editions, Three default printers are installed.   Two of them are not used on our network.   Fax and MicroSoft XPS Document Writers.   We put together a power script that can run in PCQ Deploy that will delete these printers.

The name of the PDQ Deploy package is: Remove Fax and Windows XPS Printers.

The following are the two scripts that run:

Step 1:  Remove Fax

# Get Printers
$printers = Get-WmiObject -Class Win32_Printer # Delete Printers
$printers | ForEach-Object {
     if ($_.Name -match "Fax"){
         $_.Delete()
     }
}

Step 2: Removes the XPS Printer

# Get Printers
$printers = Get-WmiObject -Class Win32_Printer

# Delete Printers
$printers | ForEach-Object {
     if ($_.Name -match "Microsoft XPS Document Writer"){
         $_.Delete()
     }
}

This should get deployed on all new installs on the network.

Leave a Reply

You must be logged in to post a comment.