Windows XP SP2 vai ser lancado para Automatic Update.

Windows, Linux, BeOS e tudo o mais

Moderadores: Administradores, Moderadores

Windows XP SP2 vai ser lancado para Automatic Update.

Mensagempor Tretabyte » Quarta Ago 25, 2004 16:32

Boas,
bom parece que esta para muito breve o lancamento do sp2 para o win xp em automatic update, isto é, para quem tem essa opcao ligada no sistema, assim que é detectado o win vai comecar a fazer o update automatico para o sp2 mas existe um pequeno script em vbs que podemos correr para impedir o deploy do sp2 nos sistemas, aqui fica as infos:
http://www.microsoft.com/technet/script ... xpsp2.mspx (site com a info)
To use the script, copy the code, paste it into Notepad, and then save the script with a .vbs file extension (for example, blockxpsp2.vbs). When running the script, follow the script name with a parameter: either /b for block or /u for unblock. Optionally, you can also include the name of a remote computer as the second parameter. If no remote computer is specified, the script runs on the local computer. For example:

cscript blockxpsp2.vbs /b client1

If the default script host on the computer is Cscript.exe, the initial "cscript" may be omitted.


Código: Seleccionar todos
' 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 = "Software\Policies\Microsoft\Windows\WindowsUpdate"
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 & "\root\default: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 = "SOFTWARE\Policies\Microsoft\Windows"
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


sem mais
Tretabyte
Avatar do Utilizador
Tretabyte
Gurus
Gurus
 
Mensagens: 5333
Registado: Sábado Jan 17, 2004 13:17
Localização: Lx

Mensagempor bcunha » Quinta Ago 26, 2004 9:32

Segunda-feira passada aqui na empresa o servidor desses updates já tinha o SP2 e logo demanhã era todos a receberem o mega remendo da MS

Cmps.
AMD64 2800+ || ASUS A8V || 2x256 OCZ 3500 || ATI 9800SE 128MB @ 9800XT || 2xSeagate 7200 80 GB sata Raid 0 || Sony DRU-500A || LG 1710S Adoro o cheiro de napalm por a manhã.
bcunha
Membro Diamante
Membro Diamante
 
Mensagens: 1130
Registado: Quarta Out 02, 2002 9:26

SP2 em português de Portugal

Mensagempor hbaldy » Quinta Set 23, 2004 21:59

Cliquem no link abaixo e preparem-se para descarregar os 265MB do SP2... em português de Portugal:

http://download.microsoft.com/download/ ... P2-PTG.exe
hbaldy
Novato
Novato
 
Mensagens: 4
Registado: Quinta Set 23, 2004 21:40


Voltar para Sistemas Operativos

Quem está ligado:

Utilizador a ver este Fórum: Nenhum utilizador registado e 1 visitante

cron