Download DeletePS.zip. When you extract DeletePS.exe and type DeletePS at a CMD prompt, you receive:
Created By: Harry Bates - Lockheed-Martin - firstname.lastname@example.org
Command Line Switches - (All switches and params ucased automatically)
NO QUOTATION MARKS NEEDED. '/' IS THE SWITCH DELIMITER.
/D - Specify delete.
/C - Specify command line output.
Example output with the /D switch with the following command line
piped to a file:
DeletePS.exe /S=PSERV /D /C > \\Server\Share\%computername%.log
Example output with just showing and no /D for deletion:
DeletePS.exe /S=PSERV /C > \\Server\Share\%computername%.log
If no /D is specified and a match is found, /C is automatically
/S=SERVERNAME - Show or delete all printers and server connections via
specified server on a workstation.
Example: If you had 20 printers connected to a workstation via a
single print server and you renamed the print server or removed
it from the network, this will delete or show all instances and all
printers that were connected via that print server.
/P=PRINTERNAME - Show or delete all instances of a specific printer
mounted via all servers on a workstation.
Example 1: If there were 2 print servers on your network and you
removed a printer that was mounted on both, this will delete all
of the instances of this specific printer by name.
Example 2: If you had a workstation with the following printers
and you renamed HP-Laser or removed HP-Laser from the network,
if you use the /D switch it will removed both of these connected
printers, but leave all other printers mounted to these servers
connected to that workstation.
/A - Administrative removal of HKEY_LOCAL_MACHINE entry for removing
print servers. (Must use /D and /S switches also)
This will check first to see if the user has local admin priveleges.
If they do it will remove the following key from the registry:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers\PSERV
This software is freeware.
For updates or other freeware visit www.jsiinc.com and search for:
THIS SOFTWARE IS PROVIDED WITH NO GUARANTEE. AUTHOR IS NOT RESPONSIBLE
FOR FAILURES OR PROBLEMS FROM USAGE OF THIS UTILITY. ANY BUGS OR COMMENTS
PLEASE FEEL FREE TO EMAIL email@example.com.