Check printer queue on Windows printer server

Hello

Let me first give a small overview of the setup. All printers are connected to Windows 2000 servers. There are a lot of UNIX (AIX & HP-UX) servers as well which have SAP running.

I'm working on a script to add printers to a specified SAP instance. I want to verify the user input (to check if the given printer exists on the given printer server). in Windows you can use lpq. I tried with lpq & lpstat on AIX but they only seem to work for printers already added. Creating a fake printer on the printer server isn't an option either, the queue is just being created without errors.

Does anyone have any ideas if it's possible?

Kind regards
Niels Verhage