Solved

How can i get a script query with all the printers in the print server and get all users or group names who are in the security tab.

Posted on 2008-10-08
20
227 Views
Last Modified: 2012-05-05
Hi,

How can i get a script query with all the printers in the print server and get all users or group names who are in the security tab.
So i know who has what access to the printers and remove any out dated users for whome we would have given access.

Regards
Sharath
0
Comment
Question by:bsharath
  • 13
  • 4
  • 3
20 Comments
 
LVL 16

Expert Comment

by:Bryan Butler
Comment Utility
If you have the option to you powershell, i might be able to help.  
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
Yes i can use poweshell if i get the output neat
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
Any help...
0
 
LVL 16

Assisted Solution

by:Bryan Butler
Bryan Butler earned 200 total points
Comment Utility
Shoot, I thought I posted this before.  I've been tinkering, but I still have still a ways to go to get it working.  Here's a script I found that has a bunch of usefull stuff.

http://www.servernewsgroups.net/group/microsoft.public.windows.server.scripting/topic23471.aspx

I'll keep trying and post back when I get something more.  Please let me know if you get anywhere.  
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
No this does not help... :-(
0
 
LVL 16

Expert Comment

by:Bryan Butler
Comment Utility
Do you have a list of the printers?    Such as in the code referenced above where you create an array of the names:

  aPrinters = array(array("\\PServer1\Bookkeeping", "\\PServer2\Operations"), _
   array("\\PServer1\Upstairs",  "\\PServer2\Upstairs"), _
   array("\\PServer1\Canon",  "Remove"), _
   array("\\PServer1\Teller",  "\\PServer2\Teller"), _
   array("\\PServer1\Wires",  "\\PServer2\Wires"))


0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
Yes i have a list of printers...
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
Yes i have a list of printers...
0
 
LVL 14

Accepted Solution

by:
rejoinder earned 300 total points
Comment Utility
First you will require the following install file...
http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en
This is a command line app from MS to grab such details from printer, files, folder, registry etc.
Please install and try running the command against a printer.
In my example, I have a local printer called "HP Deskjet 6980 series"
C:\Program Files\Windows Resource Kits\Tools>subinacl /printer "HP Deskjet 6980 series"
The results are a little rough but with some tweeking, it might be useful.
Anyway, please download that file and try the command like I mentioned above to see if that gets you closer to your goal.
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
Where can i find the [printer name] should it be the share name?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 11

Author Comment

by:bsharath
Comment Utility
Where can i find the [printer name] should it be the share name?
0
 
LVL 14

Expert Comment

by:rejoinder
Comment Utility
You can use the share name;
eg.
C:\Program Files\Windows Resource Kits\Tools>subinacl /printer "\\printserver\printer1"
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
When i give the share name it says not a recognized command...
0
 
LVL 14

Expert Comment

by:rejoinder
Comment Utility
Just in case, map the printer on the workstation first, then try running the command again.
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
Out of Domain at the moment shall check and get back....
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
Tryed but still the same message
0
 
LVL 14

Expert Comment

by:rejoinder
Comment Utility
Just a double check here...
You opened a command prompt and went to C:\Program Files\Windows Resource Kits\Tools
Within that folder you ran the tool using the following command;
subinacl /printer "\\printserver\printer1"

You can verify that on the print share name is correct?

Can you copy the Tools folder to the print server and running the command line from there.  Once logged on to the print server you will be able to use the actual printer name if you want.
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
Thank U
Ok from within the print server i get them... But not formatted can this ne fomatted into a csv file.
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
Thank U
Ok from within the print server i get them... But not formatted can this ne fomatted into a csv file.
0
 
LVL 11

Author Comment

by:bsharath
Comment Utility
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now