
Invoke-CimMethod -InputObject $printer -MethodName SetDefaultPrinter Invoke the SetDefaultPrinter method: $printer = Get-CimInstance -Class Win32_Printer -Filter "Name='HP LaserJet 5Si'" To use WMI to set the default printer, find the printer in the Win32_Printer collection and then To add a new network printer, use WScript.Network: (New-Object -ComObject WScript.Network).AddWindowsPrinterConnection("\\Printserver01\Xerox5")

Without any distinguishing labels, it is not easy to interpret. WSH scripts: (New-Object -ComObject WScript.Network).EnumPrinterConnections()īecause this command returns a simple string collection of port names and printer device names

You can also list the printers by using the WScript.Network COM object that is typically used in The simplest way to list the printers installed on a computer is to use the WMI Win32_PrinterĬlass: Get-CimInstance -Class Win32_Printer We will use a mix of both tools to demonstrate specific tasks. From now on Windows 10 will keep its “hands” off your Default Printer setting.īonus tip: If you’re looking for a good resource for learning the ins-and-outs of Windows 10, I recommend the awesome Windows 10 for Dummies.You can use PowerShell to manage printers by using WMI and the WScript.Network COM object from Just follow the steps below:Ģ – Click the Settings icon (it looks like a “gear” or “cog”).Ĥ – Select Printers & scanners from the menu over in the left-hand column.ĥ – Toggle the Let Windows manage my default printer setting to Off. Luckily, there’s a very simple settings change that will take care of this for you.

Like you, I prefer to set my own default printer and not have Windows decide which one I should use the next time I need to print something. Rick’s answer: Darren, this is one of those changes that some people love and others absolutely despise. Is there any way to stop Windows 10 from changing the default printer without my permission? I really want the laser printer to remain as the default and switch to the inkjet manually when I need it. But I recently upgraded to Windows 10 and now every time I print to either printer, that printer gets set as the default printer.

With Windows 7 I could leave the laser printer as the default printer, then switch to the inkjet manually on the rare occasions when I need it. The other is a Brother laser printer that I use to print most everything else. The first one is an Epson inkjet that I use every now and then to print photos. I hope you can help me solve a problem I’m having since I replaced my old computer with a new one running Windows 10. Question from Darren S.: I love your blog Rick, especially the questions and answers section.
