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.

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
LVL 11
bsharathAsked:
Who is Participating?
 
rejoinderConnect With a Mentor Commented:
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
 
Bryan ButlerCommented:
If you have the option to you powershell, i might be able to help.  
0
 
bsharathAuthor Commented:
Yes i can use poweshell if i get the output neat
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
bsharathAuthor Commented:
Any help...
0
 
Bryan ButlerConnect With a Mentor Commented:
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
 
bsharathAuthor Commented:
No this does not help... :-(
0
 
Bryan ButlerCommented:
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
 
bsharathAuthor Commented:
Yes i have a list of printers...
0
 
bsharathAuthor Commented:
Yes i have a list of printers...
0
 
bsharathAuthor Commented:
Where can i find the [printer name] should it be the share name?
0
 
bsharathAuthor Commented:
Where can i find the [printer name] should it be the share name?
0
 
rejoinderCommented:
You can use the share name;
eg.
C:\Program Files\Windows Resource Kits\Tools>subinacl /printer "\\printserver\printer1"
0
 
bsharathAuthor Commented:
When i give the share name it says not a recognized command...
0
 
rejoinderCommented:
Just in case, map the printer on the workstation first, then try running the command again.
0
 
bsharathAuthor Commented:
Out of Domain at the moment shall check and get back....
0
 
bsharathAuthor Commented:
Tryed but still the same message
0
 
rejoinderCommented:
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
 
bsharathAuthor Commented:
Thank U
Ok from within the print server i get them... But not formatted can this ne fomatted into a csv file.
0
 
bsharathAuthor Commented:
Thank U
Ok from within the print server i get them... But not formatted can this ne fomatted into a csv file.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.