lesnobear.blogg.se

Let windows manage my default printer
Let windows manage my default printer












let windows manage my default printer let windows manage my default printer

If oPrinter.Attributes And ATTR_DEFAULT Then Set colPrinters = oWMI.ExecQuery("SELECT * FROM Win32_Printer") Set oWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Nevertheless, there's a simple workaround for finding the default printer on those Windows versions, which consists in checking for the PRINTER_ATTRIBUTE_DEFAULT attribute in each printer's Attribute bitmask: Const ATTR_DEFAULT = 4 For example, the Win32_Printer.Default property that indicates whether the printer is the default one, doesn't exist on Windows 2000/NT. StrValue = "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device"Īs for WMI, it's true that some WMI classes and class members aren't available on older Windows versions. You can try retrieving the default printer name from the registry instead, though I'm not sure if it's reliable: Set oShell = CreateObject("WScript.Shell") If you are facing any problems, comment below and I will try to help as much as possible.The WshNetwork.EnumPrinterConnections collection doesn't provide any information about the default printer. It is that simple to set default printer on Windows 10. As soon as you execute the command, the default printer will be changed to your choice. wmic printer where name=" printer_name" call setdefaultprinterĤ. Once you have the names, execute the below command while replacing “ printer_name” with the actual printer name from the list you got from the first command. So, execute the below command and the window will list all the printer names. Before you can change the default printer, you need to know the printer names. You can also right-click and select Run as administrator option.Ģ. Open the Start Menu, search for “ Command Prompt” and then click on the “ Run as Administrator” option appearing on the right panel. Command to Set Default PrinterĪs an alternative, you can also use simple commands to set the default printer.ġ. Related: How to clear the print queue in Windows 10. You will see a green checkmark for the default printer. As soon as you select the option, Windows will change the default printer to your choice. If you see a warning message, click on the “ Yes” button.Ĥ. In this page, right-click on the printer of your choice and select the “ Set as default printer” option. Next, click on the “ View devices and printers” link under the Hardware and Sound section.ģ. In the control panel, make sure the View by is set to “ Categories“. Search for “ Control Panel” in the start menu and click on it to open it.Ģ. The good thing is, this method works in Windows 7 and 8 too.ġ.

let windows manage my default printer

You can also use the good old control panel to modify the default printer. As soon as click on the button, the target printer will be set as default on Windows 10.

let windows manage my default printer

In the subsequent page, click on the “ Set as Default” button.Ħ. Now, click on the printer of your choice from the list and then click on the “ Manage” button.ĥ.














Let windows manage my default printer