Windows – Specify different username when printing to a lpr printer

lprprintingwindows

My school requires me to use a different username than my Windows username in order to print. With Linux lpr I could just specify -U username, but there is no such option for Windows lpr (and even if it had, it still wouldn't be a "native support" — I would love to print from Windows applications and not from the command line).

How can I make Windows to supply a particular username (different from my current username) when printing to a LPR printer?

I'm using Windows 7 x64, but that shouldn't matter much.

Best Answer

How are you connecting to the printer? If you're connecting to it using IPP (a possible scenario if the printer is behind CUPS), you set the printer using an IPP URL. As IPP is made over HTTP, you could try good old ipp://user@host/... (and IPP allows SSL (so HTTPS), but I guess that depends on the server configuration).

Related Question