Citrix – Remove the annoying ‘Microsoft XPS Document Writer’ printer, or ‘Send to Onenote”

Issue

Want to remove the ‘Microsoft XPS Document Writer’ printer

Resolution

To remove the ‘Microsoft XPS Document Writer’ printer within Windows Server 2008, run the following command:

cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -d -p “Microsoft XPS Document Writer”

This command can be used for any other local printer that needs to be removed, eg. ‘Send to OneNote’