shovel
Goto Top

Batchdatei um den Ruhezustand herzustellen. ???

Ich suche einen Befehl oder ein Tool, um sowohl den lokalen, wie auch andere Netz-Clients in den Ruhezustand zu versetzen.
Ich wäre für jeden Hinweis dankbar face-smile

Content-Key: 5035

Url: https://administrator.de/contentid/5035

Printed on: April 20, 2024 at 15:04 o'clock

Member: fritzo
fritzo Dec 21, 2004, updated at Oct 05, 2012 at 21:02:25 (UTC)
Goto Top
Hi,

Suchfunktion und google ergeben folgendes:

Bestimmte Hardware per VB-Script o. Batch-Datei vor Ruhezustand ausschalten?!

;)

Grüße,
Fritz
Member: shovel
shovel Dec 22, 2004 at 22:51:05 (UTC)
Goto Top
Ich hab mich glaub´ich nicht gut ausgedrückt. Ich meinte, das ich eigentlich einfach eine Desktop-Verknüpfung möchte, mit der ich den Rechner in den Ruhezustand schicke.

Wenn ich psshutdown -t -h -c benutze, fährt er runter, aber nicht in den Ruhezustand.

Vielleicht weiß ja jemand einen Rat. ???
Member: fritzo
fritzo Dec 28, 2004 at 09:47:07 (UTC)
Goto Top
Hi,

das hier hab ich noch nicht ausprobiert, aber es sieht sehr genial aus:

Binary: http://users.pandora.be/jbosman/pwroff30.zip
Website: http://users.pandora.be/jbosman/applications.html
Manual: http://users.pandora.be/jbosman/poweroff/poweroff.htm

Shutdown, Hibernation etc. entweder über GUI oder via Aufruf mit entsprechenden Parametern aus der dosbox, einem Script oder natürlich auch via Icon vom Desktop.

Grüße,
fritzo
Member: fritzo
fritzo Dec 28, 2004 at 09:49:34 (UTC)
Goto Top
Nachtrag, hier ist die deutsche Version: http://users.pandora.be/jbosman/poweroff_deutsch.zip
Member: fritzo
fritzo Dec 28, 2004 at 10:04:33 (UTC)
Goto Top
Hi

ein gut durchdachtes Tool, es kann als Dienst installiert werden und hat auf Wunsch eine Remotekonsole. Außerdem weckt es Remotesystem per WOL auf, man kann andere Credentials mitgeben, Tasks schedulen etc. Wenn man das alles nicht braucht, kann man per Klick oder aus der dosbox Rechner in so ziemlich jeden Up/Down-Zustand versetzen, den es gibt.

Es kostet nichts (man kann dem Autor was schenken, wenn man will). Like it. Anbei die command line options.

Grüße,
fritzo


Command line options
Usage: poweroff action [options]
Actions: logoff, reboot, shutdown, poweroff, standby, hibernate, lock, wol, monitor_off, monitor_on or no_action
Options:
-warn : Show a warning message before doing the action
-warntime s : Show the warning message for s seconds
-playsound : Play a sound when the warning is displayed
-soundfile ?f? : Specifies the .WAV file that must be played
-msg "m" : Specifies the warning message, use \n for a newline character
-force : Force applications to close
-wait s : Wait s seconds before checking the time
-remote m : Do the action on the remote machine m (name or ip)
-remschedule : Do the scheduling on the remote machine
-use_nt : Use the NT protocol to shutdown/reboot a remote machine
-port p : Use port p to connect to the remote machine
-username u : User NT username u to connect to the remote machine
-password p : Use password p to connect to the remote machine
-run : Run a program before doing the action
-program "p" : Runs program p before doing the action
-directory "d" : Start the program in directory d
-notray : Do not show poweroff icon in the system tray
-nocancel : Do not allow the user to cancel the action from the tray or in the warning dialog
-immediate : Perform the action immediately (default)
-scheduled : Perform the action in a scheduled manner
-time hh:mm : Perform the action at the specified time
-date dd/mm/yyyy: Perform the action on the specified date
-days [m,t,...] : Perform the action on the spcified days of the week (m,t,w,th,s,su)
-weeks [1,..,5] : Perform the action on the spcified weeks (default=all weeks)
-day d : Perform the action on the specified day of the month (1-31)
-seconds n : Perform the action after n seconds
-process p : Perform the action when a process named p does not exist anymore
-ip ip : Specifies the ip adress for WOL
-subnet s : Specifies the subnet mask for WOL
-mac m : Specifies the mac address for WOL
-allow_remote : Allow remote control
-remote_port p : Listen on port p for commands
-remote_pswd p : Set a password that clients must give for remote control
-simulate : Simulate all actions, do not perform them
-minimize : Start minimized in the system tray
-quiet : Don't display error messages
-save_settings : Saves current settings to the registry
-remove_settings: Remove the settings from the registry
-save_svc_set : Save current settings to the service
-remove_svc_set : Removes the service settings
-create_service : Creates the poweroff service, including the settings
-remove_service : Removes the poweroff service, including the settings
-debug : Start poweroff in debug mode
Member: shovel
shovel Dec 28, 2004 at 14:08:46 (UTC)
Goto Top
Danke für den Tip. Das werde ich gleich mal ausprobieren.
Member: wian777
wian777 Jan 29, 2010 at 06:19:37 (UTC)
Goto Top
Ich habe mir zur Batchdatei ruhezustand.cmd einen Link mit Shortcut erstellt:

:: XXXXXXXXXXXXXXXXXXXX BEGIN
@echo off
:: file: ruhezustand.cmd
:: porpose: Rechner in Ruhezustand versetzen
rundll32.exe powrprof.dll,SetSuspendState
:: XXXXXXXXXXXXXXXXXXXX END

Gruß Willi

[Edit Biber] Codetags gesetzt. [/Edit]