Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. AdamBarnett

    VBScript to export printer info and TCP/IP info to text file

    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
  2. AdamBarnett

    VBScript to export printer info and TCP/IP info to text file

    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...
  3. AdamBarnett

    VBScript to export printer info and TCP/IP info to text file

    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...

Part and Inventory Search

Back
Top