Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Retrieve listing from print server

$
0
0

I've been asked to do some analysis regarding varying aspects of my organization's printers.  I can connect to the print server via windows explorer by simply typing in the address (\\52zhtv-qs-201v\Printers) and see a list of (all 962) printers in the organization.  What I'd really like is to get the information that I can see there (see attached screenshot) into Excel or Access so that I can manipulate it....especially the model information from either the Comments or Model column.  I'm generally pretty good with Excel VBA...if these were files in a directory I'd be set.  But I have no idea how to retrieve information from a print server.  And typing it in manually isn't an attractive option.  Ideally I'd just like to produce a text file that contains the information you see in the explorer...like if you could do get-childitem \\52zhtv-gs-201v\Printers -verbose > printers.txt and get this listing in a file I could import to Excel.


Viewing all articles
Browse latest Browse all 6937

Trending Articles