Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to know if it's possible to create and use a printer in Azure Worker Roles.

I do know that I can install printers with basic batch commands. So I could define a batch script that would run as a startup task.

something like:

rundll32 printui.dll,PrintUIEntry /if /b "printer" /f %windir%\inf\ntprint.inf /r "file:" /m "printername")

Question: Can I use a printer to print to file, maybe to local storage? I do need the function to print to file or atleast to have a printer installed, because I have to get the PCL output from different installed printers.

Sadly I can not test it by myself. I do not have a CC to join the 90 days trial.

share|improve this question

migrated from Nov 2 '12 at 10:19

This question came from our site for professional and enthusiast programmers.

This sounds like not a good idea. What are you trying to do? – Craig Nov 2 '12 at 3:28
I'm using the pcl output to support different bluetooth printer to print directly from android/ios apps without having external apps (like pdfreader, etc) installed . Azure VMs would to the job flawlessly but I'd like to try out worker roles instead. – lurkerbelow Nov 2 '12 at 10:29

If you think it is possible on Azure VM it is definitely possible on Web/Worker roles.

What you need is a StartUp Task executed with elevated privileges (executionContext='elevated'). This startup task can be anything that does not require UI to run.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.