Link to home
Start Free TrialLog in
Avatar of uucutech
uucutech

asked on

Remove a network printer using vbscript

Hello,

I have a vbscript login script that adds windows printers from a Windows 2003 print server using the "WSHNetwork.AddWindowsPrinterConnection" command.  I was just wondering if there is a similar command that can be used to remove a network printer.  i tried "WSHNetwork.DeleteWindowsPrinterConnection" and "WSHNetwork.RemoveWindowsPrinterConnection" but neither of them seemed to work.  I'm a total vbscript n00b so i apologize if this question is lame.  Thanks in advance for the help!

UUCUTECH
Avatar of fixnix
fixnix

(was easier to post a link to that PAQ than to copy/paste relevant info...lots of good stuff there including use of WSH)

ASKER CERTIFIED SOLUTION
Avatar of fixnix
fixnix

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of uucutech

ASKER

More than enough information between those 2 links to earn you the points.

Thanks a lot for your help!
You're welcome!