Has anyone used RemovePrinterConnection? When I run the script below it works fine adding the printer:
Set WshNetwork = CreateObject("WScript.Network"
WshNetwork.AddWindowsPrinterConnection "\\server\printer"
Then I change the script to this:
Set WshNetwork = CreateObject("WScript.Network"
WshNetwork.RemovePrinterConnection "\\server\printer"
I get a popup error:
Script: printer.vbs
Line: 2
Char: 1
Error: This network connection does not exist.
Code: 800708CA
Source: WSHNetwork.RemoveNetworkDrive
I don't understand why source in the above error is RemoveNetworkDrive
If anyone has run into this error I could sure use some help.
TIA
Coolclark
Set WshNetwork = CreateObject("WScript.Network"
WshNetwork.AddWindowsPrinterConnection "\\server\printer"
Then I change the script to this:
Set WshNetwork = CreateObject("WScript.Network"
WshNetwork.RemovePrinterConnection "\\server\printer"
I get a popup error:
Script: printer.vbs
Line: 2
Char: 1
Error: This network connection does not exist.
Code: 800708CA
Source: WSHNetwork.RemoveNetworkDrive
I don't understand why source in the above error is RemoveNetworkDrive
If anyone has run into this error I could sure use some help.
TIA
Coolclark