Default printer per Active Directory group on the terminal server

Sales prints on the second floor, accounting next door, the warehouse downstairs – all on the same Remote Desktop servers. How to give every group its own default printer, and what to do when a user is in several groups.

On this page

The requirement

On a terminal server all users share the same machine, so “the printer next to the PC” does not exist. The usual rule is: the department decides the default printer, and individual users may have an exception. In Active Directory this maps naturally to groups such as GG_Sales or GG_Accounting.

Three questions need an answer:

  1. How does a group get its printer?
  2. Which printer applies if a user is in several groups?
  3. How do individual exceptions override the group?

Option 1: Group Policy preferences with item-level targeting

For each group you create a printer item in User Configuration → Preferences → Control Panel Settings → Printers, check Set this printer as the default printer and restrict the item with Item-level targeting → Security Group. Step by step: Set the default printer with Group Policy.

Several groups: all matching items apply, the one processed last wins. You control the order by the position of the items in the GPO (and the link order of several GPOs). That works, but the “priority” is only visible in the order of the list.

Exceptions for individual users: an item with targeting on the user, placed after all group items.

Nested groups: the Security Group targeting evaluates group memberships of the user’s token, so nested groups work – as long as the user has logged on again since the change.

Limits: on terminal servers the timing problems remain: redirected client printers arrive after Group Policy, reconnects are not covered, and a failed printer connection silently leaves the old default.

Option 2: logon script

A logon script can check group membership and set the printer, for example with PowerShell:

$me = [Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()
if ($me.IsInRole('CONTOSO\GG_Sales')) {
  Get-CimInstance Win32_Printer -Filter "Name='\\\\printsrv01\\HP-Sales'" |
    Invoke-CimMethod -MethodName SetDefaultPrinter
}

You control priority and exceptions in code – and you have to maintain that code. A script runs once at logon, not on reconnect, and does not see printers that only arrive later. In RDP sessions, check the result in the session itself: Windows keeps the default printer per session there, and not every method changes the printer the session really uses (see How it works).

Option 3: WePrintEasy

WePrintEasy is built around exactly this model:

  • Assign a printer to an AD group in the admin console – search the group, pick the printer from the print server’s list, save.
  • Priority per group: if a user is in several groups, the group with the smallest priority number wins – visible as a column in the list.
  • User beats group: a direct user assignment always wins over group assignments.
  • Nested groups are taken into account; memberships come from the logon token, so no AD queries are needed at logon.
  • SID-based: renaming a group does not break the assignment.
  • Check user shows for any logon name which printer they will get and through which group.

The agent then enforces the result at logon and reconnect, including the redirected-printer timing. Assignments can also be managed with PowerShell or imported in bulk from CSV – see PowerShell & CSV.

Group changes need a new logon

Group memberships are read from the logon token. If you add a user to a group, the new printer applies after the next logon – the same as with Group Policy.

Recommendation

Situation Suitable
Few groups, no redirection, users log off Group Policy preferences
Special logic per user that no tool covers Logon script
Many groups or overlaps, home-office printers, reconnects, need for diagnostics WePrintEasy

Full comparison: GPO vs. logon script vs. WePrintEasy.

Fixed default printers without scripts WePrintEasy sets the assigned printer at every logon and reconnect and keeps it in place – per AD user or group. Free · MIT licence · See all features

Download WePrintEasy 1.0.13