+ Post New Thread
Results 1 to 8 of 8
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. ...
  1. #1

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,308
    Thank Post
    901
    Thanked 1,797 Times in 1,548 Posts
    Blog Entries
    12
    Rep Power
    466

    Script to configure printer permissions?

    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

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,761
    Thank Post
    354
    Thanked 532 Times in 497 Posts
    Rep Power
    182
    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

    Code:
    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

  3. #3
    Cache's Avatar
    Join Date
    Apr 2008
    Location
    Cumbria
    Posts
    1,283
    Thank Post
    477
    Thanked 188 Times in 182 Posts
    Blog Entries
    3
    Rep Power
    67
    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?

  4. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,308
    Thank Post
    901
    Thanked 1,797 Times in 1,548 Posts
    Blog Entries
    12
    Rep Power
    466
    I am looking at SETACL how can i use a wildcard to do it on all printers on the server please?

  5. #5

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,308
    Thank Post
    901
    Thanked 1,797 Times in 1,548 Posts
    Blog Entries
    12
    Rep Power
    466

  6. #6

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,308
    Thank Post
    901
    Thanked 1,797 Times in 1,548 Posts
    Blog Entries
    12
    Rep Power
    466
    can you please help @Steve21

  7. #7

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,761
    Thank Post
    354
    Thanked 532 Times in 497 Posts
    Rep Power
    182
    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.

    Steve

  8. Thanks to Steve21 from:

    FN-GM (13th November 2012)

  9. #8

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,308
    Thank Post
    901
    Thanked 1,797 Times in 1,548 Posts
    Blog Entries
    12
    Rep Power
    466
    That will do, just saves me inputting all these printers!

    Thanks



SHARE:
+ Post New Thread

Similar Threads

  1. Script to change printer server
    By button_ripple in forum Scripts
    Replies: 1
    Last Post: 16th September 2008, 01:29 PM
  2. Script to configure Outlook then minimize
    By FN-GM in forum Scripts
    Replies: 3
    Last Post: 26th January 2008, 01:04 PM
  3. Script to change folder permissions
    By scottyses in forum General Chat
    Replies: 1
    Last Post: 15th January 2008, 09:52 AM
  4. Replies: 4
    Last Post: 23rd November 2006, 10:33 PM
  5. Script to delete printer
    By tosca925 in forum Scripts
    Replies: 2
    Last Post: 31st August 2005, 08:45 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •