After writing the blogpost how to change the printserver in RES into many printservers (variable) by use of a powershell script I remembered that I mentioned the use of a CSV file but not blogged how I got the data :). Ths script is also found on the net and not written by myself but can't remember the site I found it otherwise I would have left a url. The script posted here is written in VBS and you need to start it in a cmd file with the right credentials to target the printserver. The printserver is located in the script and you can pipe the output to a csv file with ' > c:\temp\printserver.csv.

 

Here is the script mind that you need to change the server you want to target. I added some items to it so you get all data.

strComputer = "PRINTSERVER"
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colItems =  objWMIService.ExecQuery _
    ("Select * from Win32_Printer")

For Each objItem In colItems
Wscript.Echo "Description:" & ";" & objItem.Description & ";" & "Printer:" & ";" & objItem.DeviceID & ";" & "Driver Name:" & ";" & objItem.DriverName & ";" & "Port Name:" & ";" & objItem.PortName & ";" & "ShareName:" & ";" & objItem.ShareName & ";" & "Location:" & ";" & objItem.Location & ";" & "Comment:" & objItem.Comment
Next

Output wil be like this and you can use it for documentation purposes or other purposes.