Archive for the 'Batch' Category

Set permissions per group on printers

The normal way to disable printers is to stop the spooler service. The disadvantage is that no user can print anymore, including the admins.

Or if a division just works an hour longer than another division. For this case you need “setacl” in /system32.  ->Get here

Following code sets the permission “print” for the group “Consulting” on the printer “Prin1″ at the server “server”  (you have to work with sharenames of the printers).Domainname: corp.com

1. Create an batchfile with the code:

setacl.exe -on “\\server\print1″ -ot prn -actn ace -ace “n:corp.com\Consulting;p:print”

For other permissions and more details visit http://setacl.sourceforge.net/

2. Now you need a batchfile which erases this permission:

setacl.exe -on “\\server\print1″ -ot prn -actn trustee -trst “n1:corp.com\Consulting;ta:remtrst;w:dacl”

3. Create  jobs in the “Schedule Tasks” for each batchfile


Categories

Top Posts

  • None

Attention please !!!

Watch out for nasty wordwraps. The design is responsible for them!!!

Pages

 

June 2012
M T W T F S S
« Jun    
 123
45678910
11121314151617
18192021222324
252627282930  

Archives


Follow

Get every new post delivered to your Inbox.