WSUSOffline - Mises à Jour Microsoft Offline : Différence entre versions
(→Utilisation Ligne de commande) |
(→Utilisation Ligne de commande) |
||
Ligne 44 : | Ligne 44 : | ||
== Environnement Windows == | == Environnement Windows == | ||
+ | |||
+ | === Téléchargement des mise à jour - DownloadUpdate.cmd === | ||
Exemple d'utilisation de la partie téléchargement en environnement Windows | Exemple d'utilisation de la partie téléchargement en environnement Windows | ||
Ligne 74 : | Ligne 76 : | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | === Mise à jour des postes === | + | === Mise à jour des postes - DoUpdate.cmd === |
On utilise le script DoUpdate.cmd situé dans wsusoffline/client/cmd/ | On utilise le script DoUpdate.cmd situé dans wsusoffline/client/cmd/ |
Version du 30 mars 2016 à 15:30
Sommaire
Présentation
WSUS Offline est un projet Allemand destiné a fournir un logiciel portable de mise à jour pour les produits Windows et Office.
Il est utilisable en interface graphique et en ligne de commande. Les systèmes supportés sont :
OS Clients | OS Serveurs |
---|---|
|
|
Microsot Office | Produits Legacy |
---|---|
|
|
Installation
Utilisation Graphique
Utilisation Ligne de commande
Un des gros intérêts de cet outil c'est qu'il est utilisable en ligne de commande, sous environnement Windows ou Linux pour le téléchargement.
Environnement Windows
Téléchargement des mise à jour - DownloadUpdate.cmd
Exemple d'utilisation de la partie téléchargement en environnement Windows
DownloadUpdates.cmd w61-x64 glb /includedotnet /includemsse /verify
Script de téléchargement des mises à jour
@pushd ..
echo Téléchargement des Mise à jour Windows 7 x64
call .\DownloadUpdates.cmd w61-x64 glb /includedotnet /includemsse /includewddefs /verify
@popd
@pushd ..
echo Téléchargement des Mise à jour Windows 10 x64
call .\DownloadUpdates.cmd w100-x64 glb /includedotnet /includemsse /includewddefs /verify
@popd
@pushd ..
echo Téléchargement des Mise à jour Office
call .\DownloadUpdates.cmd ofc glb /includedotnet /includemsse /includewddefs /verify
@popd
@pushd ..
echo Téléchargement des Mise à jour Office 2010
call .\DownloadUpdates.cmd o2k10 fra /includedotnet /includemsse /includewddefs /verify
@popd
@pushd ..
echo Téléchargement des Mise à jour Office 2013
call .\DownloadUpdates.cmd o2k13 fra /includedotnet /includemsse /includewddefs /verify
@popd
Mise à jour des postes - DoUpdate.cmd
On utilise le script DoUpdate.cmd situé dans wsusoffline/client/cmd/
Exemple d'utilisation (on a monté le partage WSUSOffline sur W:\) :
call W:\cmd\DoUpdate.cmd /verify /updatecpp /updatetsc /instdotnet4 /autoreboot
Liste des switchs utilisables
/verify (Checks the intengrity of Files)
/instielatest (Installs the latest version of Internet Explorer [IE8 on WinXP; IE9 on Vista; IE11 on Windows 7]) [only until WSUSOU 10.3.2]
/skipieinst (Avoid mandatory installation of most recent Internet Explorer) [since WSUSOU 10.6]
/updatecpp (Updates Microsoft C++ runtime)
/instmssl (Update / Install Microsoft Silverlight)
/updatetsc (Updates Remote Desktop)
/instdotnet4 (Installs Microsoft .NET Framework 4 on Windows XP / .NET Framework 4.6 on Windows Vista, 7, 8.x) [not valid for Windows 10]
/instwmf (Installs Windows Managment Framework 5.0, only for Windows 7 & 8.x)
/instmsse (Installs Microsoft Security Essentials, not valid for Windows 8.x & 10)
/autoreboot (Reboots the computer and continues the update process, if required)
/shutdown (Shuts down the computer after the end of the update process)
/showlog (Shows log file after update completes)
/all (Installs all updates, including those, which are installed; only use, if you have trouble with Windows Update)
/excludestatics (Does not install statically defined updates)
/skipdynamic (Skips the dynamic determination of updates, I do not recomment using it)
Environnement Linux
On veux créer un serveur WSUS offline avec un partage Samba sur une VM Debian par exemple
Pré-requis
apt-get install cabextract md5deep xmlstarlet unzip
Télécharger l'archive wsusoffline extraire et rendre exécutable les scripts
cd /opt/
mkdir wsus
cd wsus
wget http://download.wsusoffline.net/wsusoffline1061.zip
unzip wsusoffline1061.zip
cd wsusoffline
chmod a+x /opt/wsus/wsusoffline/sh/*
Les commandes sont identiques à celles utilisés en environnement Windows
bash /opt/wsus/wsusoffline/sh/DownloadUpdates.sh w100-x64 glb /includedotnet /includemsse /includewddefs /verify
Enfin on pourra planifier un script qui mettra à jour la base de mise à jour WSUS Offline tous les soirs
10 22 * * * / bin / bash /opt/wsus/wsusoffline/sh/DownloadUpdates.sh w100-x64 glb /includedotnet /includemsse /includewddefs /verify
10 23 * * * / bin / bash /opt/wsus/wsusoffline/sh/MonScript.sh
Contenu de MonScript.sh
bash /opt/wsus/wsusoffline/sh/DownloadUpdates.sh w61-x64 glb /includedotnet /includemsse /includewddefs /verify
bash /opt/wsus/wsusoffline/sh/DownloadUpdates.sh w100-x64 glb /includedotnet /includemsse /includewddefs /verify
bash /opt/wsus/wsusoffline/sh/DownloadUpdates.sh ofc glb /includedotnet /includemsse /includewddefs /verify
bash /opt/wsus/wsusoffline/sh/DownloadUpdates.sh o2k10 fra /includedotnet /includemsse /includewddefs /verify
bash /opt/wsus/wsusoffline/sh/DownloadUpdates.sh o2k13 fra /includedotnet /includemsse /includewddefs /verify
Liste des paramètres produits
w60 Windows Vista / Server 2008
w60-x64 Windows Vista / Server 2008 64bit
w61 Windows 7
w61-x64 Windows 7 64bit / Windows Server 2008 R2
w62 Windows 8
w62-x64 Windows 8 64bit / Windows Server 2012
w63 Windows 8.1
w63-x64 Windows 8.1 64bit / Windows Server 2012 R2
w100 Windows 10
w100-x64 Windows 10 64bit / Windows Server 2016
o2k7 Office 2007
o2k10 Office 2010
o2k13 Office 2013
o2k16 Office 2016
ofc Office File Converter und globale Office Updates
Liste des swtichs
/excludesp Exclude Service Packs
/excludestatics Exclude Static defined Updates
/excludewinglb Switch to avoid Silverlight downloads
/includedotnet Include dotnet
/includemsse Include MS Security Essentials
/includewddefs Include Windows Defender Definitions
/includewle Include Windows Live Elements
/nocleanup No cleanup (do not remove old / superseded files)
/verify Verify (create hashes and check them)
/exitonerror Exit on error
/skipsdd No online update for the .\static\StaticDownload*.txt files
/skiptz Skip TZ (in the past occured a problem cased by summer time, now wsusou will detect timezone to resove this; this switche disables this behaviour)
/skipdownload Skip download (just check hashes and cleanup)
/skipdynamic Skip Dynamic determined updates
/proxy Set Proxy server
/wsus Set WSUS URL Location
/wsusonly Just download from wsus and skip updates not on wsus server
/wsusbyproxy Use the proxy to connect to wsus server
Sources
- Site du projet officiel : http://www.wsusoffline.net/
- Script automatisation des mises à jour : http://www.mendesconsulting.net/wsus-offline-automation/
- Liste des paramètres en ligne de commande DownloadUpdate.cmd : http://forums.wsusoffline.net/viewtopic.php?f=7&t=120
- Liste des paramètres en ligne de commande DoUpdate.cmd : http://forums.wsusoffline.net/viewtopic.php?t=2691
- Explication des deux dernières options : http://forums.wsusoffline.net/viewtopic.php?f=2&t=3790
- Mise en place sur serveur Linux + Samba + Cron : http://www.pcwelt.de/ratgeber/WSUS-Offline-Update-Windows-PCs-bequem-updaten-Update-per-Linux-Server-9725672.html