Jump to content

Script to configure printer permissions?


Recommended Posts

Posted

Hi,

 

We need to set it so that people in a particular group can manage print jobs, delete them etc. We have allot of printers on the system. Does anyone have a script i can use. I looked on the net ans when testing one trashed the existing permissions and the others didn't work.

 

Thanks

Posted

Honestly if you're only going to be doing it once, then sticking with the groups you've made it'd be easier just to steal a premade tool like "SetACL" and use that.

 

SetACL | Helge Klein | Home of SetACL

 

All the scripting done, just tell it what you want and where and it does it :)

 

for /f %i in (printers.txt) do @SetAcl -on "\\printsvr\%i" -ot prn -actn ace -ace "n:\domain\printMgmt;p:man_documents" -ace "n:domain\printMgmt;p:print"

 

For all the printers in printers.txt (or if you want to change it to loop a directory), Give group "printMgmt" permissions to manage docs, and print etc.

 

More examples at:

 

Managing Printer, Service, WMI and Share Permissions with SetACL.exe | Helge Klein | Home of SetACL

 

 

If you really want a script, you could just go miles through xcacls scripts, but seems a lot of work if it's a once only thing :)

 

 

Steve

Posted
Are all the printers on a single print server? If so, wouldn't the Print Operators group on the local machine do what your after or does it grant to many permissions?
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...