Hi,
We are changing printservers. And lets say the old servers name is "oldserver" and the new "newserver"

Im trying to build a script that adds specific printers by different groups in AD. That is not a problem and it is solved. The problem is to delete all printers from oldserver.

To delete one specific printer i use :

If ingroup("Floor3")

$ReturnCode = KeyExist("HKEY_CURRENT_USER\Printers\Connections\,,oldserver,Hp_laserjet")
If $ReturnCode = 1
? "If Hp_laserjet exists it will be deleted"
If delPrinterConnection ("\\oldserver\Hp_laserjet") = 1
? "Removed printer Hp_laserjet"
Endif
Endif
Endif

But what i want to do is to delete all printers added on "oldserver" Can I in some way use wildcard?

Please help!