Thank you! I added the below to my code and it works perfect!
Dim strHostAddr
strHostAddr = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _
& temp & "\root\cimv2:Win32_TCPIPPrinterPort=""" & _
objPrinter.PortName & """").HostAddress
Thanks for replying. I have the following script that I use occasionally that does export the port name and host address, and then writes to a text file. As you see, i am looking to merge the two classes (w32.printer and w32.tcpipprinterport together, for lack of better terms. Here is my working...
I have a working vbscript that currently exports printer information to a text file as shown below. I need to be able to view the printer port's IP address into this script. Since this falls under the class w32.tcpipprinterport and not under w32.printer which my script is utilizing...i need help...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.