Setting Default Printer - Via Comptuer settings, not user.
Hello. I'll just get straight into it. I am looking for ways to set the default printer for any user that signs into specific PCs. We are talking multiple lab environments with printers that are assigned to the COMPUTER, not the user. Classroom environment. I…
Hello. I'll just get straight into it. I am looking for ways to set the default printer for any user that signs into specific PCs. We are talking multiple lab environments with printers that are assigned to the COMPUTER, not the user. Classroom environment. I am trying to avoid applying configuration to users. I have to believe there is some way to make it so when you sign into a computer, you get assigned a default printer based on the computer's settings. Also, this should work regardless of whether the user has signed in before or not. Take it like this Printer1, Printer2 and Printer3, and Lab1, Lab2, and LAb3 - they are paired accordingly by the number. Labs are their own OUs, we place a GPO in the OU that says "Map printerX" (numbers respective.) No, I do not want to pay for papercut or printlogic. We actually moved away from them for issues, I dunno, it's before me. We have a print server set up and GPOs (not using GPPs) to map the printers to the computers. The only issue is we want that mapped printer to be the default printer when users sign in. I'd like to avoid removing all other printers (print to pdf is still really useful.) I've read a few different ways to assign default printers, but many don't seem to account for wanting a user-agnostic solution. I'm looking for something that will work. Fingers crossed someone might have a suggestion. The only thing I'm really considering is GPP in the user configuration with loopback processing so it only applies to the computers in that OU. I've heard that can slow down Group policy quite a bit though. I've read about setting a scheduled task that runs on log-on to map, but wouldn't that run under the system context still if I am setting it via computer configuration? Thanks. Sorry if I come across bumbling, uninformed, or otherwise.
已收录讨论
Group Policy Object (GPO) loopback processing
This is the right answer. Thread over.
You already said the solution. Loopback processing. Classrooms are literally listed as one of the reason you would use it: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/group-policy/group-policy-processing#loopback-processing-mode
Yup this. Did it this way for various things like a few Citrix farms as well as RDS collections where printers needed to be limited and the default printer needed to be a specific one. Also helped when requirements changed and a specific group of people needed to have a different default printer on those specific computers.
GPOs have not been slow since we switched to admx back in… 2000 I think? You could go with a script but I think loopback will suffice. Just keep in mind… never ever under ANY circumstance put loopback settings ANYWHERE except on a predefined gpo. Loopback settings switch the entire policy configuration around. If you just put that setting wherever, you WILL run into unexplainable behavior that seems to be without rhyme or reason. Instead, put it on such that you can see it’s being applied. And ask yourself what you want to see happen, because both merge and replace modes may have effects on your environment you didn’t want- because they affect both users and computers in their entirety, not just your printers being tied to a machine rather than a user.
To expand on loop back processing, you'll set the user settings, then in computer settings enable loopback processing, then apply the GPO to the computers OU. All in one policy object.
(New-Object -ComObject WScript.Network).SetDefaultPrinter('PrinterName')
GPO with loopback is what you need. Probably already got lots of comments on it though.