How to make sure the wepa printer is the default printer for all users

Windows will sometimes modify the default printer for various reasons. Here is one approach that can be used to ensure that the desired printer is the default printer for your users.

Windows 10: To use the approach below, you must disable the option “Let Windows manage my default printer”


Option 1 – GPO with rundll32

Quick Start: Execute rundll32 printui.dll PrintUIEntry /y /n “wepa BW” where “wepa BW” is the name of the desired default printer.

To set the printer using Group Policy:

  1. Log into the DC
  2. Open Group Policy Management tool
  3. Right click the OU for the user population and click “Create GPO for this domain and Link it here”
  4. Name it something, e.g. Set Default Printer
  5. Right click the newly created GPO and click Edit
  6. In the navigation tree, go to User Configuration > Windows Settings > Scripts (Logon/Logoff)
  7. Double click Logon
  8. Click Show Files, and in the Explorer window that pops up click the URL/File Path box at the top and copy that location to your clipboard.
  9. Right click Notepad.exe and run as administrator. You will not be able to save to the proper file path if Notepad is not run as an admin!
  10. Paste the following text below in to a text document@ECHO OFF
    rundll32 printui.dll PrintUIEntry /y /n “wepa BW”
  11. Click Save As, and in the file path/URL box at the top paste in the file path from a few steps above. Be sure to click All Files under the Save as Type and save it as a .bat
  12. Close notepad and find the Logon Properties window.
  13. Click Add, then Browse, then paste that same file path from above into the file path/URL box.
  14. Double click the .bat file you made.
  15. You should now see your .bat file on the Add a Script window. Click OK
  16. Click Apply and then OK on the logon properties window
  17. Exit out of the Group Policy Management Editor and go back to the Group Policy Management window.
  18. Right click your GPO object and click Enforced
  19. Double click your GPO and ensure that the links/security filtering are correct per your OUs/User Groups
  20. Exit out of the DC and test

Option 2 – Startup VBS script

Place a script in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup.

Click here to download the .vbs script.

==Script contents==
Set WSHNetwork = CreateObject(“WScript.Network”)
WSHNetwork.SetDefaultPrinter “wepa BW”

(Hat tip: