Shutdown/Standby after downloads finished

Shutdown/Standby after downloads finished

Postby rswrc » 13.10.2010, 21:13

Just as the subject. Two options would be nice:
- Shutdown after downloads completed
- Standby after downloads completed
I got a slow connection and let WOU run over the night. This woould be enegy saving friendly options and they are not to hard to code.
rswrc
 

Re: Shutdown/Standby after downloads finished

Postby -Iwan- » 13.10.2010, 21:22

Hi,

for those things you can use the wsusoffline\cmd\custom\FinalizationHook.cmd.
This file will be executed after the downloads are completed.
There you could enter the needed command:
Standby: %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState
Hibernate: %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate

forget it as this file will be started after every download of each selected producted was completed.
F.e.: XP downloads completed -> FinalizationHook.cmd -> O2k3 downloads completed -> FinalizationHook.cmd -> ...
-Iwan-
 
Posts: 364
Joined: 02.11.2009, 17:49
Location: NRW, Germany

Re: Shutdown/Standby after downloads finished

Postby WSUSUpdateAdmin » 14.10.2010, 11:56

"Helltürkis" auf "Etwasdunklerblaugrau" liest sich nicht wirklich flüssig, -Iwan-. ;)
GT
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: Shutdown/Standby after downloads finished

Postby -Iwan- » 14.10.2010, 12:01

Das war Absicht, da mein Vorschlag nicht funktionieren würde. Ich wollte ihn aber trotzdem mal stehen lassen ;)
-Iwan-
 
Posts: 364
Joined: 02.11.2009, 17:49
Location: NRW, Germany

Re: Shutdown/Standby after downloads finished

Postby Ernst.Eiswuerfel » 14.10.2010, 12:09

Hi,

you just need a new batch..
be sure, that the script "DownloadUpdates.cmd" has an exit in the last line
call this batch with your needed Versions like:
Code: Select all
start /wait "w2k3 enu" C:\wsusoffline\cmd\DownloadUpdates.cmd w2k3 enu
%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState

thats it ;)

cheers
Ernst.Eiswuerfel
 

Re: Shutdown/Standby after downloads finished

Postby -Iwan- » 14.10.2010, 12:44

As you can see here: viewtopic.php?f=5&t=579 ;)

Also a possibility with an automatic downloader: viewtopic.php?f=5&t=436#p1861
At the end of that batch you could enter easily the command for a standy or hibernate:
Standby: %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState
Hibernate: %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate
-Iwan-
 
Posts: 364
Joined: 02.11.2009, 17:49
Location: NRW, Germany

Re: Shutdown/Standby after downloads finished

Postby boco » 14.10.2010, 21:27

-Iwan- wrote:Das war Absicht, da mein Vorschlag nicht funktionieren würde. Ich wollte ihn aber trotzdem mal stehen lassen ;)

Aus irgendeinem Grund, der sich mir nicht erschließt, unterstützt phpBB das "Strikethrough" BBCode nicht...
Microsoft update catalog: http://catalog.update.microsoft.com/v7/site/
Windows Install media download: https://support.microsoft.com/en-us/help/15088/windows-create-installation-media
boco
 
Posts: 2391
Joined: 24.11.2009, 17:00
Location: Germany

Re: Shutdown/Standby after downloads finished

Postby WSUSUpdateAdmin » 03.11.2010, 10:36

:arrow: http://trac.wsusoffline.net/browser/trunk (r160). :)

Thanks & regards
Torsten Wittrock
Last edited by aker on 28.07.2013, 18:46, edited 1 time in total.
Reason: Trac Link aktualisiert
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: Shutdown/Standby after downloads finished

Postby Denniss » 03.11.2010, 11:36

WSUSUpdateAdmin wrote::arrow: http://trac.wsusoffline.net/browser/trunk (r160). :)

Thanks & regards
Torsten Wittrock
Der Build ist leider noch nicht öffentlich verfügbar :(
Last edited by aker on 28.07.2013, 18:47, edited 1 time in total.
Reason: Trac Link aktualisiert
Denniss
 
Posts: 869
Joined: 01.08.2009, 10:51

Re: Shutdown/Standby after downloads finished

Postby boco » 03.11.2010, 13:56

Richtig, noch nicht gelandet.
Microsoft update catalog: http://catalog.update.microsoft.com/v7/site/
Windows Install media download: https://support.microsoft.com/en-us/help/15088/windows-create-installation-media
boco
 
Posts: 2391
Joined: 24.11.2009, 17:00
Location: Germany

Next

Return to Anregungen / Suggestions

Who is online

Users browsing this forum: No registered users and 39 guests