Batch file or vbscript to reboot printers on network?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
anoble1
Posts: 22
Joined: 29 Nov 2012 10:24

Batch file or vbscript to reboot printers on network?

#1 Post by anoble1 » 08 Aug 2013 08:36

Is it possible to create a batch file to reboot network printers on the network?
Can you even send commands to a printer via batch?

Thanks,

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Batch file or vbscript to reboot printers on network?

#2 Post by foxidrive » 08 Aug 2013 08:40

I have no direct experience with network printers but you would either need to log in via a HTTP interface and supply credentials to access the system - or you may be able to telnet into the printer and supply credentials and possibly reboot it using commands. The telnet option could be scripted with a scriptable third party telnet program.

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Batch file or vbscript to reboot printers on network?

#3 Post by Squashman » 08 Aug 2013 10:11

Been a while since I have seen a network printer with telnet access. Probably close to 10 years and that was on an older style printer that we still had in the school district.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Batch file or vbscript to reboot printers on network?

#4 Post by foxidrive » 09 Aug 2013 03:51

That could be the sticking point. :) As I said, I don't deal with them really - but some modems still have telnet access so it could be that some printers do too.

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: Batch file or vbscript to reboot printers on network?

#5 Post by penpen » 09 Aug 2013 15:38

You may use a VBS or JScript (preferred when using with batch files), to send http requests,
so scripted controlling via http interface is possible, too.
Here is an example to retrieve an html page, web authentication is commented out, just remove the ' characters in those lines:
http://www.activexperts.com/activsocket/howto/http/vbscript/

penpen

Post Reply