Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Dernière révision Les deux révisions suivantes | ||
tuto:gestion_de_parc:wpkg:start [13/07/2012 10:10] dani |
tuto:gestion_de_parc:wpkg:start [30/10/2015 14:59] dani [Mises à jour locales] |
||
---|---|---|---|
Ligne 12: | Ligne 12: | ||
* [[firefox|Mozilla Firefox]] | * [[firefox|Mozilla Firefox]] | ||
- | * [[:wpkg:thunderbird|Mozilla Thunderbird]] | + | * [[thunderbird|Mozilla Thunderbird]] |
- | * [[:wpkg:flash|Plugin Flash]] | + | * [[flash|Plugin Flash]] |
- | * [[:wpkg:pdfcreator|PDFCreator]] | + | * [[pdfcreator|PDFCreator]] |
- | * [[:wpkg:gimp|The GIMP]] | + | * [[gimp|The GIMP]] |
- | * [[:wpkg:vlc|VLC]] | + | * [[vlc|VLC]] |
- | * [[:wpkg:7zip|7 Zip]] | + | * [[7zip|7 Zip]] |
- | * [[:wpkg:jre|Sun JRE]] | + | * [[jre|Sun JRE]] |
- | * [[:wpkg:ccleaner|CCleaner]] | + | * [[ccleaner|CCleaner]] |
- | * [[:wpkg:libreoffice|LibreOffice]] | + | * [[libreoffice|LibreOffice]] |
- | * [[:wpkg:ntp|Configuration du client NTP]] | + | * [[ntp|Configuration du client NTP]] |
- | * [[:wpkg:tightvnc|TightVNC]] | + | * [[tightvnc|TightVNC]] |
- | * [[:wpkg:productkey|Product Key]] | + | * [[productkey|Product Key]] |
- | * [[:wpkg:adobe_reader|Adobe Reader]] | + | * [[adobe_reader|Adobe Reader]] |
- | * [[:wpkg:sumatrapdf|Sumatra PDF]] | + | * [[sumatrapdf|Sumatra PDF]] |
- | * [[:wpkg:wpkg|WPKG Client]] | + | * [[wpkg|WPKG Client]] |
- | * [[:wpkg:zabbix_agent|Agent Zabbix]] | + | * [[zabbix_agent|Agent Zabbix]] |
+ | ===== Mises à jour locales ===== | ||
+ | |||
+ | Pour accélérer les mises à jour, il faut les exécuter en locale, et donc synchroniser le dépôt entier depuis un serveur central vers le poste, puis, détecter si il y a eu des changements depuis la dernière exécution, et si oui, lancer les mises à jour | ||
+ | |||
+ | Pour synchroniser, | ||
+ | |||
+ | <code batch> | ||
+ | mkdir %SystemDrive%\wpkg\ | ||
+ | mkdir %SystemDrive%\wpkg\repository | ||
+ | mkdir %SystemDrive%\wpkg\status | ||
+ | </ | ||
+ | |||
+ | Il faut d' | ||
+ | <code reg> | ||
+ | Windows Registry Editor Version 5.00 | ||
+ | |||
+ | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters] | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | <code batch> | ||
+ | @echo off | ||
+ | |||
+ | SET USER=deploiement | ||
+ | SET PASS=p@ssw0rd | ||
+ | SET REPO=https:// | ||
+ | REM SET REPO=\\192.168.7.1\wpkg | ||
+ | |||
+ | echo %DATE% %TIME% > %SystemDrive\wpkg\status\sync_in_progress.txt | ||
+ | |||
+ | net use W: %REPO% / | ||
+ | |||
+ | robocopy /MIR /R:10 / | ||
+ | |||
+ | REM Fatal Error | ||
+ | if %ERRORLEVEL% EQU 16 goto cleanup | ||
+ | REM Copy done, with errors, mismatches and new files not copied | ||
+ | if %ERRORLEVEL% EQU 15 goto cleanup | ||
+ | REM Copy failed, with mismatches and new files not copied | ||
+ | if %ERRORLEVEL% EQU 14 goto cleanup | ||
+ | REM Copy done, with errors and mismatches | ||
+ | if %ERRORLEVEL% EQU 13 goto cleanup | ||
+ | REM Copy failed with mismatches | ||
+ | if %ERRORLEVEL% EQU 12 goto cleanup | ||
+ | REM Copy done with errors and new files not copied | ||
+ | if %ERRORLEVEL% EQU 11 goto cleanup | ||
+ | if %ERRORLEVEL% EQU 10 echo FAIL + XTRA & goto end | ||
+ | REM Copy done with errors | ||
+ | if %ERRORLEVEL% EQU 9 goto cleanup | ||
+ | REM Copy failed | ||
+ | if %ERRORLEVEL% EQU 8 goto cleanup | ||
+ | REM Copy done, with mismatches and new files not copied | ||
+ | if %ERRORLEVEL% EQU 7 goto cleanup | ||
+ | REM Mismatches and new files not copied | ||
+ | if %ERRORLEVEL% EQU 6 goto cleanup | ||
+ | REM Copy done with mismatches | ||
+ | if %ERRORLEVEL% EQU 5 goto cleanup | ||
+ | REM Mismatches | ||
+ | if %ERRORLEVEL% EQU 4 goto cleanup | ||
+ | REM Copy done, new files not copied | ||
+ | if %ERRORLEVEL% EQU 3 goto cleanup | ||
+ | REM New files not copied | ||
+ | if %ERRORLEVEL% EQU 2 goto cleanup | ||
+ | REM Copy done, we have new files, updates is required | ||
+ | if %ERRORLEVEL% EQU 1 goto exec | ||
+ | REM No error, nothing copied, no updates | ||
+ | if %ERRORLEVEL% EQU 0 goto cleanup | ||
+ | |||
+ | :exec | ||
+ | echo %DATE% %TIME% > %SystemDrive%\wpkg\status\updates_pending.txt | ||
+ | goto :EOF | ||
+ | |||
+ | :cleanup | ||
+ | del %SystemDrive\wpkg\status\sync_in_progress.txt | ||
+ | </ |