Scripts Thread, Script to configure printer permissions? in Coding and Web Development; Hi,
We need to set it so that people in a particular group can manage print jobs, delete them etc. ...
29th October 2012, 03:13 PM #1
Script to configure printer permissions?
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.
IDG Tech News
29th October 2012, 03:36 PM #2
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 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.
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"
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
29th October 2012, 07:44 PM #3
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?
30th October 2012, 12:39 PM #4
I am looking at SETACL how can i use a wildcard to do it on all printers on the server please?
31st October 2012, 04:08 PM #5
13th November 2012, 10:06 AM #6
13th November 2012, 10:11 AM #7
It wouldn't really be a wildcard, it would need to be as part of a script that loops through every printer on the server.
Thanks to Steve21 from:
FN-GM (13th November 2012)
13th November 2012, 10:12 AM #8
That will do, just saves me inputting all these printers!
By button_ripple in forum Scripts
Last Post: 16th September 2008, 01:29 PM
By FN-GM in forum Scripts
Last Post: 26th January 2008, 01:04 PM
By scottyses in forum General Chat
Last Post: 15th January 2008, 09:52 AM
Last Post: 23rd November 2006, 10:33 PM
By tosca925 in forum Scripts
Last Post: 31st August 2005, 08:45 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)