No of visitors who read this post: 1707
Category: Shell Scripting
Type: Question
Author: Anonymous
Your rating: None Average: 5 (4 votes)

Hi All,

Test prints to be given to all printers in the building each day as a printer check for quality and if any issues. I want some script that can run as a scheduled task and give a test print to all printers which team members in charge of the floor will just have to go to the printers and check. This would be a very useful help if automated. Thanks.

Rahman

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

# (Solution Accepted)

Ok this is an easy one. Save the below lines into a txt file and save as the text file as a .bat extension or rename the extension to "bat".

rundll32 printui.dll,PrintUIEntry /k /n "\\Server1\Printer1"
rundll32 printui.dll,PrintUIEntry /k /n "\\Server1\Printer2"
rundll32 printui.dll,PrintUIEntry /k /n "\\Server2\Printer3"
rundll32 printui.dll,PrintUIEntry /k /n "\\Server3\Printer1"

Edit the server name and printer name and now double click the batch file to test. Once it works on your test run add it as a scheduled task. Hope this helps.

Regards
Sharath Reddy

#

WOW !

This is what I was also looking. A solution for checking printers quality daily at my office. its really annoying one to go and check every printer is working well. Really Its an Marvellous idea to check the printers remotely without any human intervention. And the script was working fine with me. Now i am reallly happy. A small amount of workload is reduced.

Thank you so much Mr. Sarath Reddy. You really helped me.

And many Thanks to the expert teams who really works Hard in solving the problems.