Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
To remove a printer connection, use the RemovePrinterConnection method, along with the Universal Naming Convention (UNC) path to the printer. RemovePrinterConnection can be used only to remove printer connections from the local computer. If you want to remove a printer connection on a remote computer, you will need to run the script using the WSHController object.
Listing 13.24 contains a script that removes a printer connection. To carry out this task, the script must perform the following steps:
Listing 13.24 Removing a Printer Connection
|
|
Send us your feedback | « Previous | Next » |