I am running into some issues when I am creating an agent procedure that prompts the technician to enter the printer name.
This is my current procedure:
I think the command is wrong. Try this one:
rundll32 printui.dll,PrintUIEntry /in "/n\\print-dorm\#printer#"
There's also a quiet option to avoid prompting or error messages. Just add the /q switch to the command line.
I hate Windows default setup for network printers. It's because they are per user based. So I stop using them a few years ago. I now use per machine printing. After all you typically want to print to a printer that's close to the computer your using. And now I typically only setup printers when I installed a new system. To create a per machine printer use this:
rundll32 printui.dll,PrintUIEntry /ga "/n\\print-dorm\#printer#" /q
Microsoft has a really good document on using printui.dll: http://download.microsoft.com/download/8/2/c/82cffcfa-56f6-4fc3-bfa5-80cd84793871/PrintUIUsersGuide.doc
Matt