$Printer = Get-Printer -Name "Microsoft XPS Document Writer" Remove-Printer -InputObject $Printer