This is a flawed approach. The ADDPRINTERCONNECTION can fail for various reasons (e.g. user not allowed to install printer drivers) though the user can still print. Or, the ADDPRINTERCONNECTION can succeed but the print server is unable to process the print jobs, e.g. spooler is stopped.
There are two types of vessels, submarines and targets.