Add a security group to Permissions on 300+ Printers on Windows 2008 R2

I have a print server Windows 2008 R2. It has 300+ print queues. I need to add a security group to have Print, Manage Printers, Manage Documents, view server.

Is there a way I can do this in one go as opposed to the hard task of selecting each printer individally?

vourneenwardAsked:
Who is Participating?
 
Dusan_BajicConnect With a Mentor Commented:
If you don't already have it, download an install Windows Resource Kit:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd

(you can install resource kit on your desktop and run script from there, assuming you have sufficient privileges)

create .bat file:

For /F "delims=: tokens=2" %%a IN ('setprinter -show \\PrintServer 6') DO (
      subinacl /printer "%%a" /grant="Domain\Group"=F
)

This will give full control to Domain\Group to all printers installed on PrintServer. I tested it and it runs fine, but please try on test machine first.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.