none
WMIC WN32_TCPIPPRINTERPORT Generic Failure RRS feed

  • Question

  • I'm trying to delete a printer port through WMI:

    WMIC PATH WIN32_TCPIPPRINTERPORT WHERE "Name like '%192.168.1.101%'" delete
    But keep getting a generic error:
    Deleting instance \\COMPUTERNAME\root\cimv2:Win32_TCPIPPrinterPort.Name="164.156.165.9"
    ERROR:
    Description = Generic failure

    Any one know how to delete a printer port through the use of the command above? Thanks.

    Thursday, November 10, 2016 2:35 PM

Answers

  • Well I found out the answer by accident. I didn't delete the associated printer first, before deleting the port. If you don't delete the printer first, the port is still in use preventing you from deleting it.
    • Marked as answer by lytvinh Thursday, November 10, 2016 2:48 PM
    Thursday, November 10, 2016 2:48 PM