Avatar of Richard Teasdale
Richard TeasdaleFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

list of printers on network

Hi. I am have been asked to provide a list of all the printers on the network (there is a rogue service keeps bringing down print services). Does anybody know how to get a printable list?
I can do java and python if required....

Thanks!
Printers and ScannersNetworking

Avatar of undefined
Last Comment
Richard Teasdale
Avatar of Alex
Alex
Flag of United Kingdom of Great Britain and Northern Ireland image

Nah, do it in AD

Assuming you have published all your printers to the directory, open up dsa.msc select printers and hit find.

You can also run this code


 get-adobject -filter {ObjectClass -eq "printQueue"}
Avatar of Alex
Alex
Flag of United Kingdom of Great Britain and Northern Ireland image

if you haven't, put a list of your printer servers into a text file

THen

$servers = Get-content c:\temp\printers.txt
Foreach ($server in $servers){Get-printer -computername $server | Get-printer | select-object $($Server), Name, Port, description, location  | Export-csv C:\temp\printerlist.csv -append}

I think that should work
Avatar of Alex
Alex
Flag of United Kingdom of Great Britain and Northern Ireland image

Actually

Get-AdObject -filter "objectCategory -eq 'printqueue'" -Properties *

That's a much nicer script, you can export a lot more out now.

CanonicalName                  
                               
CN                              
Created                        
createTimeStamp                
Deleted                        
Description                    
DisplayName                    
DistinguishedName              
                             
driverName                      
driverVersion                  
dSCorePropagationData          
                               
flags                          
instanceType                    
isDeleted                      
LastKnownParent                
location                        
Modified                        
modifyTimeStamp                
Name                            
nTSecurityDescriptor            
ObjectCategory                  
ObjectClass                    
ObjectGUID                      
portName                        
printCollate                    
printColor                      
printDuplexSupported            
printEndTime                    
printerName                    
printKeepPrintedJobs            
printLanguage                  
printMaxResolutionSupported    
printMaxXExtent                
printMaxYExtent                
printMediaReady                
printMediaSupported            
                               
printMemory                    
printMinXExtent                
printMinYExtent                
printNumberUp                  
printOrientationsSupported      
printPagesPerMinute            
printRate                      
printRateUnit                  
printShareName                  
printSpooling                  
printStaplingSupported          
printStartTime                  
priority                        
ProtectedFromAccidentalDeletion
sDRightsEffective              
serverName                      
shortServerName                
uNCName                        
url                            
uSNChanged                      
uSNCreated                      
versionNumber                  
whenChanged                    
whenCreated
ASKER CERTIFIED SOLUTION
Avatar of Ashok Dewan
Ashok Dewan
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Alex
Alex
Flag of United Kingdom of Great Britain and Northern Ireland image

Yeah, I seriously doubt that they would allow NMAP to run in a corporate environment unfortunately.
Avatar of Richard Teasdale

ASKER

Thanks To yo both! Looking at nmap as my AD skills are , well nil.
But thanks to you both for prompt and helpful replies!
Avatar of Richard Teasdale

ASKER

whhooops...just read Alex's comment. Maybe AD is the way.
Avatar of Alex
Alex
Flag of United Kingdom of Great Britain and Northern Ireland image

You just need to run those scripts in powershell_ise.exe mate :D
Avatar of Richard Teasdale

ASKER

Will do...and thanks again!
Networking
Networking

Networking is the process of connecting computing devices, peripherals and terminals together through a system that uses wiring, cabling or radio waves that enable their users to communicate, share information and interact over distances. Often associated are issues regarding operating systems, hardware and equipment, cloud and virtual networking, protocols, architecture, storage and management.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo