
- #How to change default printer in registry how to
- #How to change default printer in registry pdf
- #How to change default printer in registry windows 10
- #How to change default printer in registry Pc
- #How to change default printer in registry windows
#How to change default printer in registry windows
Go to Group Policy Editor, navigate to the following location: User Configuration > Administrative Templates > Control Panel > PrintersĪnd enable a policy called “Turn off Windows default printer management. Go to Settings > Devices > Printers & scanners, and switch off the “ Let Windows my default printer” setting.Īlternatively, you can also disable the setting through Group Policy if you have a larger network domain environment.
#How to change default printer in registry windows 10
The setting is available in Windows 10 version 1511 (build 10586) or later.

While the feature is pretty cool and useful, some of you may not like this behavior and would like to have one printer set as default at all time. Windows will automatically do the job for me based on the network I am connected with. That means, with this new feature, I don’t have to manually change my default printers back and force. The printer I used last time when I am at home will be set as default instead. The Printer1 will be set as my default printer for my work network but will not be the default one when I take my laptop home and connect it to my home network. It’s turned on by default, and when it’s on, Windows will set my default printer to be the one I used most recently at my current location.įor example, when I connect my laptop to my work network and send a document to Printer1. Windows 10 actually has a new feature that automatically manages my default printer. Why is that? How does Windows 10 know which printer to print to when I print a document?
#How to change default printer in registry Pc
this same concept and use of the reg query command can be used to get all kinds of info from a pc such as installed apps, netwokr info, etc.When I open up Devices and Printers from Control Panel, I see a list of printers installed on my Windows 10 computer but don’t see an icon that indicates which one is the default printer, like we normally see on a Windows 7 computer. you could possible implement a runas command and add a function to check all users profiles on a machine and then have the runas command run the reg query command for each user in the inital batch file, you can set the saveLoc variable to a shared network drive/location to make things easier. Voila, easy spreadsheet of users default printer! Easy printer info gathering!

When it asks for a delimiter, type in a semicolon ( ) and click OK. Change the Files of Type to All files and open our allusers.txt file. You can in turn import the allusers.txt file into Excel and use as a delimiter. My allusers.txt file will look something like this: So lets say i have 3 users and their text files:
#How to change default printer in registry pdf
In this file, you would see something like this (i do not have any real printers installed, only my Adobe PDF printer)įinally, once you have all of the text files w/the default printers in a single directory you can then combine the text files into one big one using this comand: So lets say i’m logged on and the batch file is set to run upon startup a file called: 20070818_Seamonkey420_printer.txt would be created on my C:\ drive. REM Also create current user logged in as user variableįor /f “tokens=3 delims=\” %%i in (“% USERPROFILE%”) do (set user=%%i) 2>&1įOR /F “TOKENS=1* DELIMS= ” %%A IN (‘DATE/T’) DO SET CDATE=%%BįOR /F “TOKENS=1,2 eol=/ DELIMS=/ ” %%A IN (‘DATE/T’) DO SET mm=%%BįOR /F “TOKENS=1,2 DELIMS=/ eol=/” %%A IN (‘echo %CDATE%’) DO SET dd=%%BįOR /F “TOKENS=2,3 DELIMS=/ ” %%A IN (‘echo %CDATE%’) DO SET yyyy=%%BįOR /F “TOKENS=2 DELIMS=Z” %%A IN (‘reg query “HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows” /v device’) DO echo %user%:%%A > %saveLoc%%date%_%user%_printer.txt REM Set drive to save device to, be sure to keep format

find the default printer via the registry for the user create a user variable based on the users logged inģ. Then under Printers & Scanners > Adobe PDF> Manage > Printing Preferences. From the Start menu search for 'Printers and Scanners'.
#How to change default printer in registry how to
Here is how to get to the setting using a Windows 10 computer. The setting is 'Ask to replace existing PDF file' option. create a date variable of the current date in YYYYMMDD formatĢ. I need to change a certain setting globally. This is a pretty basic batch file to get a user’s default printer.ġ.

This recipe shows how to get the current user’s default printer via the registry and output the information to a text file via a batch file and in turn combine the result files into a larger file to then import into excel. This is another quickie recipe for you admins.
