Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

WSUS et ses clients

5 réponses
Avatar
Sylvain COUDEVILLE
Bonjour,

Pour des raisons d'économie de bande passante, j'ai mis en place un serveur
WSUS 3.0 pour déservir les updates aux postes.

Les postes sont des machines destinées à des clients et il est compliqué de
devoir attendre que le client WSUS se décide à télécharger les updates sur le
serveur...

Existe t-il un moyen de le forcer à télécharger ces mises à jour
immédiatement ?

Merci d'avance

5 réponses

Avatar
Glenn Gagné
Bonjour,

Oui, absolument !!!

La commande sur le PC client à exécuter est:

wuauclt /detectnow

* Il ne faut pas oublier d'inclure le PC dans un groupe actif sur le serveur
WSUS (à moins de ne pas avoir attribué de groupes et de restrictions).

-----------------

Glenn Gagné
Technicien MCP/TI


"Sylvain COUDEVILLE" a écrit
dans le message de
news:
Bonjour,

Pour des raisons d'économie de bande passante, j'ai mis en place un
serveur

WSUS 3.0 pour déservir les updates aux postes.

Les postes sont des machines destinées à des clients et il est compliqué
de

devoir attendre que le client WSUS se décide à télécharger les updates sur
le

serveur...

Existe t-il un moyen de le forcer à télécharger ces mises à jour
immédiatement ?

Merci d'avance


Avatar
Ascadix
Bonjour,

Pour des raisons d'économie de bande passante, j'ai mis en place un serveur
WSUS 3.0 pour déservir les updates aux postes.

Les postes sont des machines destinées à des clients et il est compliqué de
devoir attendre que le client WSUS se décide à télécharger les updates sur le
serveur...

Existe t-il un moyen de le forcer à télécharger ces mises à jour
immédiatement ?

Merci d'avance


Regarde là:
http://wsus.editme.com/WSUSFAQ

Vers le milieu de la page
"Q. Are there any undocumented command line switches for the Windows
Auto Update Client?"

ça peut être un bon début

--
@+
Ascadix
adresse @mail valide, mais ajoutez "sesame" dans l'objet pour que ça
arrive.

Avatar
Mathieu CHATEAU
Bonjour,

voici un petit vbscript qui passe sur toutes les machines afin de forcer les
clients wsus:

'---------------
'Mettre à jour MONDOMAINADACHANGER

Set oDomain = GetObject("WinNT://MONDOMAINADACHANGER")
Set objShell = CreateObject ("wscript.shell")
oDomain.Filter = Array("computer")
For Each oComputer In oDomain

If IsConnectible(oComputer.Name, 1, 50) Then
wscript.echo "##############################"
wscript.echo oComputer.name
objShell.run "c:scriptsbinpsexec " & oComputer.Name & " net stop
wuauserv",0,True
objShell.run "c:scriptsbinpsexec " & oComputer.Name & " net start
wuauserv",0,True
objShell.run "c:scriptsbinpsexec " & oComputer.Name & " wuauclt
/detectnow",0,True
End if
Next

Function IsConnectible(sHost, iPings, iTO)

If iPings = "" Then iPings = 2
If iTO = "" Then iTO = 750


Const OpenAsASCII = 0
Const FailIfNotExist = 0
Const ForReading = 1


Set oShell = CreateObject("WScript.Shell")
Set oFSO = CreateObject("Scripting.FileSystemObject")
sTemp = oShell.ExpandEnvironmentStrings("%TEMP%")
sTempFile = sTemp & "runresult.tmp"

oShell.run "%comspec% /c ping.exe -n " & iPings & " -w " & iTO & " " &
sHost & ">" & sTempFile, 0 , True

Set fFile = oFSO.OpenTextFile(sTempFile, ForReading, FailIfNotExist,
OpenAsASCII)


sResults = fFile.ReadAll
fFile.Close
oFSO.DeleteFile(sTempFile)


Select Case InStr(sResults,"TTL=")
Case 0 IsConnectible = False
Case Else IsConnectible = True
End Select
End Function


--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"Sylvain COUDEVILLE" wrote in
message news:
Bonjour,

Pour des raisons d'économie de bande passante, j'ai mis en place un
serveur
WSUS 3.0 pour déservir les updates aux postes.

Les postes sont des machines destinées à des clients et il est compliqué
de
devoir attendre que le client WSUS se décide à télécharger les updates sur
le
serveur...

Existe t-il un moyen de le forcer à télécharger ces mises à jour
immédiatement ?

Merci d'avance


Avatar
Mathieu CHATEAU
pour les plus récalcitrants:

A renommer en windowsupdate.cmd

echo off
Echo This batch file will Force the Update Detection from the AU client by:
Echo 1. Stops the Automatic Updates Service (wuauserv)
Echo 2. Deletes the LastWaitTimeout registry key (if it exists)
Echo 3. Deletes the DetectionStartTime registry key (if it exists)
Echo 4. Deletes the NextDetectionTime registry key (if it exists)
Echo 5. Restart the Automatic Updates Service (wuauserv)

Pause
@echo on
net stop wuauserv
REG DELETE
"HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update"
/v LastWaitTimeout /f
REG DELETE
"HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update"
/v DetectionStartTime /f
Reg Delete
"HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update"
/v NextDetectionTime /f
net start wuauserv
wuauclt /detectnow

@echo off
Echo This AU client will now check for the Updates on the Local SUS Server.
Echo After 10-20 mts Have a look at C:WindowWindows update.log
Echo For any errors; feel free to post on the forum & I will try to help
out.
Pause



--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"Mathieu CHATEAU" wrote in message
news:
Bonjour,

voici un petit vbscript qui passe sur toutes les machines afin de forcer
les clients wsus:

'---------------
'Mettre à jour MONDOMAINADACHANGER

Set oDomain = GetObject("WinNT://MONDOMAINADACHANGER")
Set objShell = CreateObject ("wscript.shell")
oDomain.Filter = Array("computer")
For Each oComputer In oDomain

If IsConnectible(oComputer.Name, 1, 50) Then
wscript.echo "##############################"
wscript.echo oComputer.name
objShell.run "c:scriptsbinpsexec " & oComputer.Name & " net stop
wuauserv",0,True
objShell.run "c:scriptsbinpsexec " & oComputer.Name & " net start
wuauserv",0,True
objShell.run "c:scriptsbinpsexec " & oComputer.Name & " wuauclt
/detectnow",0,True
End if
Next

Function IsConnectible(sHost, iPings, iTO)

If iPings = "" Then iPings = 2
If iTO = "" Then iTO = 750


Const OpenAsASCII = 0
Const FailIfNotExist = 0
Const ForReading = 1


Set oShell = CreateObject("WScript.Shell")
Set oFSO = CreateObject("Scripting.FileSystemObject")
sTemp = oShell.ExpandEnvironmentStrings("%TEMP%")
sTempFile = sTemp & "runresult.tmp"

oShell.run "%comspec% /c ping.exe -n " & iPings & " -w " & iTO & " " &
sHost & ">" & sTempFile, 0 , True

Set fFile = oFSO.OpenTextFile(sTempFile, ForReading, FailIfNotExist,
OpenAsASCII)


sResults = fFile.ReadAll
fFile.Close
oFSO.DeleteFile(sTempFile)


Select Case InStr(sResults,"TTL=")
Case 0 IsConnectible = False
Case Else IsConnectible = True
End Select
End Function


--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"Sylvain COUDEVILLE" wrote
in message news:
Bonjour,

Pour des raisons d'économie de bande passante, j'ai mis en place un
serveur
WSUS 3.0 pour déservir les updates aux postes.

Les postes sont des machines destinées à des clients et il est compliqué
de
devoir attendre que le client WSUS se décide à télécharger les updates
sur le
serveur...

Existe t-il un moyen de le forcer à télécharger ces mises à jour
immédiatement ?

Merci d'avance





Avatar
Mathieu CHATEAU
erreur de copier/coller

remplacer "echo off" par "@echo off"

:'(
--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"Mathieu CHATEAU" wrote in message
news:
pour les plus récalcitrants:

A renommer en windowsupdate.cmd

echo off
Echo This batch file will Force the Update Detection from the AU client
by:
Echo 1. Stops the Automatic Updates Service (wuauserv)
Echo 2. Deletes the LastWaitTimeout registry key (if it exists)
Echo 3. Deletes the DetectionStartTime registry key (if it exists)
Echo 4. Deletes the NextDetectionTime registry key (if it exists)
Echo 5. Restart the Automatic Updates Service (wuauserv)

Pause
@echo on
net stop wuauserv
REG DELETE
"HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update"
/v LastWaitTimeout /f
REG DELETE
"HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update"
/v DetectionStartTime /f
Reg Delete
"HKLMSoftwareMicrosoftWindowsCurrentVersionWindowsUpdateAuto Update"
/v NextDetectionTime /f
net start wuauserv
wuauclt /detectnow

@echo off
Echo This AU client will now check for the Updates on the Local SUS
Server.
Echo After 10-20 mts Have a look at C:WindowWindows update.log
Echo For any errors; feel free to post on the forum & I will try to help
out.
Pause



--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"Mathieu CHATEAU" wrote in message
news:
Bonjour,

voici un petit vbscript qui passe sur toutes les machines afin de forcer
les clients wsus:

'---------------
'Mettre à jour MONDOMAINADACHANGER

Set oDomain = GetObject("WinNT://MONDOMAINADACHANGER")
Set objShell = CreateObject ("wscript.shell")
oDomain.Filter = Array("computer")
For Each oComputer In oDomain

If IsConnectible(oComputer.Name, 1, 50) Then
wscript.echo "##############################"
wscript.echo oComputer.name
objShell.run "c:scriptsbinpsexec " & oComputer.Name & " net stop
wuauserv",0,True
objShell.run "c:scriptsbinpsexec " & oComputer.Name & " net start
wuauserv",0,True
objShell.run "c:scriptsbinpsexec " & oComputer.Name & " wuauclt
/detectnow",0,True
End if
Next

Function IsConnectible(sHost, iPings, iTO)

If iPings = "" Then iPings = 2
If iTO = "" Then iTO = 750


Const OpenAsASCII = 0
Const FailIfNotExist = 0
Const ForReading = 1


Set oShell = CreateObject("WScript.Shell")
Set oFSO = CreateObject("Scripting.FileSystemObject")
sTemp = oShell.ExpandEnvironmentStrings("%TEMP%")
sTempFile = sTemp & "runresult.tmp"

oShell.run "%comspec% /c ping.exe -n " & iPings & " -w " & iTO & " " &
sHost & ">" & sTempFile, 0 , True

Set fFile = oFSO.OpenTextFile(sTempFile, ForReading, FailIfNotExist,
OpenAsASCII)


sResults = fFile.ReadAll
fFile.Close
oFSO.DeleteFile(sTempFile)


Select Case InStr(sResults,"TTL=")
Case 0 IsConnectible = False
Case Else IsConnectible = True
End Select
End Function


--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"Sylvain COUDEVILLE" wrote
in message news:
Bonjour,

Pour des raisons d'économie de bande passante, j'ai mis en place un
serveur
WSUS 3.0 pour déservir les updates aux postes.

Les postes sont des machines destinées à des clients et il est compliqué
de
devoir attendre que le client WSUS se décide à télécharger les updates
sur le
serveur...

Existe t-il un moyen de le forcer à télécharger ces mises à jour
immédiatement ?

Merci d'avance