(view source code of login_disconnect_network_printer.vbs as plain text)
Set wshNetwork = CreateObject( "WScript.Network" )
On Error Resume Next
wshnetwork.RemovePrinterConnection "\\CompanyServer\LaserJet Marketing", True, False
If Err Then
WScript.Echo "Error " & Err.Number & " while trying to drop LaserJet Marketing"
WScript.Echo "(" & Err.Description & ")"
End If
On Error Goto 0
Set wshNetwork = Nothing
page last modified: 2024-04-16; loaded in 0.0054 seconds