simple wsus offline
Verfasst: 21 Jun 2010, 09:25
Siehe unten... 

start.bat#include <GuiConstantsEx.au3>
GuiCreate("Schule Wallisellen - Updater", 390, 100)
GuiCtrlCreateLabel("Schule Wallisellen Updater: start.bat", 10, 22, 350, 140)
GUISetState(@SW_SHOW)
RunWait ("\\SERVERNAME\opt_pcbin\install\PAKETNAMEN\start.bat","", @SW_MINIMIZE)
sleep (6000)
GuiCtrlCreateLabel("Schule Wallisellen Updater: DoUpdate.cmd", 10, 22, 350, 140)
GUISetState(@SW_SHOW)
RunWait ("Z:\updates\cmd\DoUpdate.cmd %*","", @SW_MINIMIZE)
exit
@echo off
Title Windows und Office update
echo .
echo PC: %COMPUTERNAME%
echo .
echo Schule Wallisellen - Updateservice
echo ==========================================
echo .
echo Mapping Networkdevice
net use z: \\WSUSSERVER\wsus$ "PASSWORT" /user:USER@DOMAIN.ch /Persistent:No
echo .
echo Verifiziere Verbindung...
if not exist Z:\updates\checkfile.cmd goto :missing
echo .
echo Verbindung Erfolgreich
echo .
echo .
echo Initialisierung abgeschlossen
echo .
echo .
goto :exit
:missing
echo .
echo ACHTUNG: SETUP ABGEBROCHEN
echo ===================================
echo .
echo Installationsdateien konnten nicht gefunden werden!
echo .
echo Netzwerkverbindung und Dateisystem checken!
echo .
pause
goto :exit
:exit
[Initial]
Message=Updateprozedur
LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off
[Aktionen]
;Variablen fuer BetriebssystemsVersion (OS)-Test
DefVar $OS$
DefVar $MinorOS$
set $OS$ = GetOS
set $MinorOS$ = GetNTVersion
if ( $OS$ = "Windows_NT" )
ShowBitmap /3 "%scriptpath%\icon.bmp" "Update"
WinBatch_install
endif
[WinBatch_install]
%SCRIPTPATH%\updater.exe
Code: Alles auswählen
#include <GuiConstantsEx.au3>
GuiCreate("Schule Wallisellen - Updater", 390, 100)
GuiCtrlCreateLabel("Schule Wallisellen Updater: start.bat", 10, 22, 350, 140)
GUISetState(@SW_SHOW)
RunWait ("\\SERVERNAME\opt_pcbin\install\updater\start.bat","", @SW_MINIMIZE)
sleep (6000)
GuiCtrlCreateLabel("Schule Wallisellen Updater: DoUpdate.cmd", 10, 22, 350, 140)
GUISetState(@SW_SHOW)
RunWait ("Z:\updates\cmd\DoUpdate.cmd %*","", @SW_MINIMIZE)
exit
Code: Alles auswählen
@echo off
Title Windows und Office update
echo .
echo PC: %COMPUTERNAME%
echo .
echo Updateservice
echo ==========================================
echo .
echo Mapping Networkdevice
net use z: \\SERVERNAME\SHARENAME$ "PASSWORT" /user:BENUTZERNAME@FULLDOMAINNAME.de /Persistent:No
echo .
echo Verifiziere Verbindung...
if not exist Z:\updates\Update.cmd goto :missing
echo .
echo Verbindung Erfolgreich
echo .
echo .
echo Initialisierung abgeschlossen
echo .
echo .
goto :exit
:missing
echo .
echo ACHTUNG: SETUP ABGEBROCHEN
echo ===================================
echo .
echo Installationsdateien konnten nicht gefunden werden!
echo .
echo Netzwerkverbindung und Dateisystem checken!
echo .
pause
goto :exit
:exit
Code: Alles auswählen
[Initial]
Message=Updateprozedur
LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off
[Aktionen]
;Variablen fuer BetriebssystemsVersion (OS)-Test
DefVar $OS$
DefVar $MinorOS$
set $OS$ = GetOS
set $MinorOS$ = GetNTVersion
if ( $OS$ = "Windows_NT" )
ShowBitmap /3 "%scriptpath%\icon.bmp" "Update"
WinBatch_install
endif
[WinBatch_install]
%SCRIPTPATH%\updater.exe