Page 1 of 1 1
Topic Options
#74338 - 2003-04-07 02:25 PM switch off printer
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
I want to switch off the printer through the script. Is it possible to do this through changing value of specific registry key?
The following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\HP LaserJet 4000 Series PCL6
Has interesting keys like:
Status=180
StartTime=0
UntilTime=0
Action=0
Any help will be appreciated. Thank you.

Top
#74339 - 2003-04-07 02:33 PM Re: switch off printer
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I assume that those keys in the best case reflect the 'current' status of the printer and doesn't control it [Wink]

I may be wrong though as demonstrated several times today [Roll Eyes]

Oh yeah, additionally :

The best result (if it is possible anyway) will be predictably a 'Stand By' state -> Switch OFF is of course only manually possible [Big Grin]

[ 07. April 2003, 14:36: Message edited by: jpols ]
_________________________



Top
#74340 - 2003-04-07 02:42 PM Re: switch off printer
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
No please. [Frown]
Since the printer is connected locally to the PC (LPT1) I think\hope there is a way. [Eek!]
thank you. [Embarrassed]

Top
#74341 - 2003-04-07 02:46 PM Re: switch off printer
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
ummm ... ask the one who sits in front of that workstation to switch it off ?

Activate Power Save Options ?

Why do you want to do this anyway ?
_________________________



Top
#74342 - 2003-04-07 05:54 PM Re: switch off printer
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I don't think you can 'switch off' a printer programmatically, unles you have a documented programming interface for this. Normally, these setting are configured via management consoles like HP Web JetAdmin for networked printers.
_________________________
There are two types of vessels, submarines and targets.

Top
#74343 - 2003-04-08 05:40 AM Re: switch off printer
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
jplos
I want to do this because most of our employees ignore the instructions and leave their PC’s and printer (local & network) on after the work hours. I know how to switch off PC at specific time but not yet the printer.

All
Do you think that any other language (like Perl or VPS) or any other third-party program\command can do such thing?
Any other suggested discussion site to place such question?

Thank you.

Top
#74344 - 2003-04-08 09:03 AM Re: switch off printer
davistev Offline
Lurker

Registered: 2003-04-08
Posts: 3
Loc: Nagoya, Japan
How do you switch off the PCs at a specific time? Sorry I know its off topic but this is one of my challenges as well.

Dave - Japan

Top
#74345 - 2003-04-08 09:28 AM Re: switch off printer
attiahia Offline
Hey THIS is FUN

Registered: 2000-03-27
Posts: 268
In kix script I will use Shutdown command then I will us AT command to schedule the script executing everyday at the end work hour.
Before run the Shutdown command in the script I will use find\ list command to check if there is any active program in the task manger.
User will get a message and option to stop the Shutdown command.

Thank you.

Top
#74346 - 2003-04-08 04:00 PM Re: switch off printer
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Attiahia: Unless your printer specifically supporst this function, you cannot do this programmatically. I do not know of any printer that you can shut down remotely or by script. However, you can set sleep modes for higher-end printers like workgroup or networked printers.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2375 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.062 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org