• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

Printing by IP showing up on Print server

We have multiple branch locations that are setup to print with a stand ip port. However, some of the branch locations are still showing on the print server as sending jobs to it. When I remote in, the printer off the print server isn't installed on thier computer. Just the ip printers. All the branch locations are setup with jet directs.  I cannot figure out how the print server is still handling jobs when other computers are by ip. Please help!!!
  • 2
1 Solution
well, connections from clients to shared printers are user specific. If you are remoting in under a different username, you will not see them.

bfpnaeechangeAuthor Commented:
Well at the time I used VNC
you could search the registry of the remote pc and use the sharename of the queue as search string, maybe this will give us some more information about what is still installed or left on that pc :) let us know what registry keys you might find.

You could use a logon script to detect if each user is connected to the printer share and, if so, disconnect it.

Paste the script below into a text file with a .vbs extension.  Customize the value of the strServer variable on line 1 with the name of the server hosting the print share.  Customize the value of the strShare variable on line 2 with the name of the printer share.  Customize the value of the strNewDefault variable on line 3 with the name of the printer to set as default if the shared one is removed.  

Running the script will disconnect the specified network printer and, if it was the default, set another printer as default.

strServer = "Server1"
strShare = "NetworkPrinter"
strNewDefault = "LocalPrinter"
On Error Resume Next
Set objNetwork = CreateObject("Wscript.Network")
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colPrinters = objWMIService.ExecQuery("Select * From Win32_Printer " & _
    "WHERE ServerName = '\\\\" & strServer & "' AND ShareName = '" & strShare & "'")
For Each objPrinter in colPrinters
    If objPrinter.Default Then
        objNetwork.SetDefaultPrinter strNewDefault
    End If
    strPrinter = "\\" & strServer & "\" & strShare
    objNetwork.RemovePrinterConnection strPrinter, True, True

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now