Detect local printer, check if connected, use as default if connected?
I'd like to be able to provide the following at login for certain users / computers. Deployment of the settings is easy.
When a user logs on (and/or a computer starts up).....
- Detect if a local USB-connected printer is installed
- Detect if the local USB-connected printer is connected
- If it is installed and connected, set it as the default printer
- Otherwise set an appropriate network printer as the default
It's the reliable detection logic that's escaping me at the moment. Any ideas?