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

Patch pour éviter le téléchargement du SP2 par la mise a jour automatique ?

5 réponses
Avatar
Aurélien
Bonjour

Je cherche le patch pour éviter le téléchargement automatique du SP2 par la
mise a jour automatique de windows.
Est ce que quelqu'un sait ou je peux trouver ça ?

Aurélien

5 réponses

Avatar
Bernard 42
Aurélien nous a déclaré sur Win FR :

: Bonjour
:
: Je cherche le patch pour éviter le téléchargement automatique du SP2
: par la mise a jour automatique de windows.
: Est ce que quelqu'un sait ou je peux trouver ça ?
:
: Aurélien



°°°

Bonsoir,


Tu peux simplement,côcher désactiver la mise
à jour automatique, dans propriétés système,
onglet mise à jour automatique.



-- Bernard 42.



°° : Adresse Mail Invalide.
Avatar
Aurélien
Tu peux simplement,côcher désactiver la mise
à jour automatique, dans propriétés système,
onglet mise à jour automatique.


C'est pas possible ??? ;-)
Je sais bien que je peux les désactiver mais il existe un patch pour éviter
de télécharger automatiquement le SP2. Je veux que les autres mises à jour
puissent se faire ...

Aurélien

Avatar
Vincent J.
C'est un script en vbs:
' Copyright (c) Microsoft Corporation 2004

' File: BlockXPSP2.vbs

' Contents: Remotely blocks or unblocks the delivery of

' Windows XP SP2 from Windows Update web site or via Automatic

' Updates.

' History: 8/20/2004 Peter Costantini Created

' Version: 1.0

On Error Resume Next

' Define constants and global variables.

Const HKEY_LOCAL_MACHINE = &H80000002

strComputer = "." ' Can be changed to name of remote computer.

strKeyPath = "SoftwarePoliciesMicrosoftWindowsWindowsUpdate"

strEntryName = "DoNotAllowXPSP2"

dwValue = 1

' Handle command-line arguments.

Set colArgs = WScript.Arguments

If colArgs.Count = 0 Then

ShowUsage

Else

If colArgs.Count = 2 Then

strComputer = colArgs(1)

End If

' Connect with WMI service and StdRegProv class.

Set objReg = GetObject _

("winmgmts:{impersonationLevel=impersonate}!" & _

strComputer & "rootdefault:StdRegProv")

If Err = 0 Then

If (LCase(colArgs(0)) = "/b") Or _

(LCase(colArgs(0)) = "-b" ) Then

AddBlock

ElseIf (LCase(colArgs(0)) = "/u") Or _

(LCase(colArgs(0)) = "-u") Then

RemoveBlock

Else

ShowUsage

End If

Else

WScript.Echo "Unable to connect to WMI service on " _

& strComputer & "."

End If

Err.Clear

End If

'*************************************************************

Sub AddBlock

'Check whether WindowsUpdate subkey exists.

strParentPath = "SOFTWAREPoliciesMicrosoftWindows"

strTargetSubKey = "WindowsUpdate"

intCount = 0

intReturn1 = objReg.EnumKey(HKEY_LOCAL_MACHINE, _

strParentPath, arrSubKeys)

If intReturn1 = 0 Then

For Each strSubKey In arrSubKeys

If strSubKey = strTargetSubKey Then

intCount = 1

End If

Next

If intCount = 1 Then

SetValue

Else

WScript.Echo "Unable to find registry subkey " & _

strTargetSubKey & ". Creating ..."

intReturn2 = objReg.CreateKey(HKEY_LOCAL_MACHINE, _

strKeyPath)

If intReturn2 = 0 Then

SetValue

Else

WScript.Echo "ERROR: Unable to create registry " & _

"subkey " & strTargetSubKey & "."

End If

End If

Else

WScript.Echo "ERROR: Unable to find registry path " & _

strParentPath & "."

End If

End Sub

'*************************************************************

Sub SetValue

intReturn = objReg.SetDWORDValue(HKEY_LOCAL_MACHINE, _

strKeyPath, strEntryName, dwValue)

If intReturn = 0 Then

WScript.Echo "Added registry entry to block Windows XP " & _

"SP2 deployment via Windows Update or Automatic Update."

Else

WScript.Echo "ERROR: Unable to add registry entry to " & _

"block Windows XP SP2 deployment via Windows Update " & _

"or Automatic Update."

End If

End Sub

'*************************************************************

Sub RemoveBlock

intReturn = objReg.DeleteValue(HKEY_LOCAL_MACHINE, _

strKeyPath, strEntryName)

If intReturn = 0 Then

WScript.Echo "Deleted registry entry " & strEntryName & _

". Unblocked Windows XP SP2 deployment via Windows " & _

"Update or Automatic Update."

Else

WScript.Echo "Unable to delete registry entry " & _

strEntryName & ". Windows XP SP2 deployment via " & _

"Windows Update or Automatic Update is not blocked."

End If

End Sub

'*************************************************************

Sub ShowUsage

WScript.Echo "Usage:" & VbCrLf & _

" BlockXPSP2.vbs { /b | /u | /? } [hostname]" & VbCrLf & _

" /b = Block (deny) Windows XP Service Pack 2 " & _

"deployment" & VbCrLf & _

" /u = Unblock (allow) Windows XP Service Pack 2 " & _

"deployment" & VbCrLf & _

" /? = Show usage" & VbCrLf & _

" hostname = Optional. Name of remote computer. " & _

"Default is local computer" & VbCrLf & _

"Example:" & VbCrLf & _

" BlockXPSP2.vbs /b client1"

End Sub

Fais un copie/coller dans un fichier txt que tu renomes en sp2.vbs et
utilise la ligne de commande suivante:

Pour bloquer le download: cscript sp2.vbs /b

Si c'est bon, tu as un ecran Dos en anglais qui te dis qu'une clée à été
créée avec succes pour bloquer le telechargement du SP2

Pour debloquer le download: cscript sp2.vbs /u



Voilà.

Vincent
Avatar
Assyril
Dans le message , Aurélien a écrit:
Bonjour

Je cherche le patch pour éviter le téléchargement automatique du SP2 par
la mise a jour automatique de windows.
Est ce que quelqu'un sait ou je peux trouver ça ?

Aurélien


Hello,

Là tu trouveras le lien http://a.vouillon.online.fr/faq-winxp.htm#163b

Avatar
Edouard
Salut à tous et merci des tuyaux...
*surtout* celui d'Assyril car je (touche du bois d'abord) n'ai
pas de pb avec SP1 et j'aimerais bien attendre encore...que
les téméraires essuient les plâtres et l'outil proposé tombe
pile! Encore merci Bien cordialement @+