Shutdown/Standby after downloads finished
				
Posted: 
13.10.2010, 21:13 
				by rswrc
				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.
			 
			
				Re: Shutdown/Standby after downloads finished
				
Posted: 
13.10.2010, 21:22 
				by -Iwan-
				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 -> ...
			 
			
				Re: Shutdown/Standby after downloads finished
				
Posted: 
14.10.2010, 11:56 
				by WSUSUpdateAdmin
				"Helltürkis" auf "Etwasdunklerblaugrau" liest sich nicht wirklich flüssig, -Iwan-. 

GT
 
			 
			
				Re: Shutdown/Standby after downloads finished
				
Posted: 
14.10.2010, 12:01 
				by -Iwan-
				Das war Absicht, da mein Vorschlag nicht funktionieren würde. Ich wollte ihn aber trotzdem mal stehen lassen  

 
			 
			
				Re: Shutdown/Standby after downloads finished
				
Posted: 
14.10.2010, 12:09 
				by Ernst.Eiswuerfel
				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
 
			 
			
				Re: Shutdown/Standby after downloads finished
				
Posted: 
14.10.2010, 12:44 
				by -Iwan-
				As you can see here: 
viewtopic.php?f=5&t=579   
 Also a possibility with an automatic downloader: 
viewtopic.php?f=5&t=436#p1861At 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
 
			 
			
				Re: Shutdown/Standby after downloads finished
				
Posted: 
14.10.2010, 21:27 
				by boco
				-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...
 
			 
			
				Re: Shutdown/Standby after downloads finished
				
Posted: 
03.11.2010, 11:36 
				by Denniss
				Der Build ist leider noch nicht öffentlich verfügbar  

 
			 
			
				Re: Shutdown/Standby after downloads finished
				
Posted: 
03.11.2010, 13:56 
				by boco
				Richtig, noch nicht gelandet.