Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

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
Avatar of Bryan Butler
Bryan Butler
Flag of United States of America image

If you have the option to you powershell, i might be able to help.  
Avatar of bsharath

ASKER

Yes i can use poweshell if i get the output neat
Any help...
SOLUTION
Avatar of Bryan Butler
Bryan Butler
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No this does not help... :-(
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"))


Yes i have a list of printers...
Yes i have a list of printers...
ASKER CERTIFIED SOLUTION
Avatar of rejoinder
rejoinder
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Where can i find the [printer name] should it be the share name?
Where can i find the [printer name] should it be the share name?
You can use the share name;
eg.
C:\Program Files\Windows Resource Kits\Tools>subinacl /printer "\\printserver\printer1"
When i give the share name it says not a recognized command...
Just in case, map the printer on the workstation first, then try running the command again.
Out of Domain at the moment shall check and get back....
Tryed but still the same message
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.
Thank U
Ok from within the print server i get them... But not formatted can this ne fomatted into a csv file.
Thank U
Ok from within the print server i get them... But not formatted can this ne fomatted into a csv file.