Anyway to get EnumPrinterConnections to show full unc

Home Forums Scripting General Scripting Anyway to get EnumPrinterConnections to show full unc

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    tonyyeb
    Member
    #103468

    Here is my code so far:

    Code:
    Set WshNetwork = WScript.CreateObject(”WScript.Network”)
    Set oPrinters = WshNetwork.EnumPrinterConnections

    For i = 0 to oPrinters.Count -1
    WScript.Echo oPrinters.Item(i)
    Next

    I want it to show me \serverprintershamename but what i get is \serverprinter name (e.g. \strefiE102 HP LaserJet 4200 Series PCL (Draft)) – when i want \strefie102-hp4050tn

    Cheers

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.