Windows BBS The Place for Microsoft Windows Support! Windows, Support, Help Site

Go Back   Windows BBS > Operating Systems > Windows XP

Windows XP Post your Windows XP related questions here.

Register your FREE account to unlock additional features at WindowsBBS.com
Register
Welcome to WindowsBBS.com
Microsoft Windows Support

Mission Statement

WindowsBBS is an online community dedicated to easily accessible technical support for those using Microsoft operating systems and other Windows software.

Our goal is to become the leading resource for computer users that require assistance with their day-to-day computer usage, including full support for networking PC's, virus & malware removal, system upgrades and general support questions.


Discussion Forums
Operating Systems
Windows 7 Windows 7
Windows Vista Windows Vista
Windows XP Windows XP
Windows Server System Windows Server System
Windows 2000 Windows 2000
Windows 95/98/Me/NT Windows 95/98/Me/NT
Internet & Networking
Networking
Internet Explorer
Microsoft Mail
Firefox, Thunderbird
      & SeaMonkey

General Internet
Security
General Security
Malware and Virus
     Removal

Other
Other Software
Hardware
Test Posts
Community
Introductions
General Discussions
Comments
      & Suggestions

News @ WindowsBBS

Forum Sponsor
 Image

Closed Thread
 
LinkBack Thread Tools
Old 19th January 2005   #1
Sue
Inactive
 
Profile:
Join Date: Apr 2002
Posts: 284
Computer Experience:
imtermediate
Sue Reputation Level


XP SP2 Blocker

Can you tell me if this script will block XP sp2 permenantly or will it expire in April? We are having some issue with SP2 and want to block it permenantly.
I found this on the Microsoft site.


' 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

Thanks

Sue is offline  
Didn't find the information you thought to find?
Check out these Similar Threads
Old 20th January 2005   #2
Inactive
 
Profile:
Join Date: Jan 2002
Location: Albuquerque, NM, USA
Posts: 5,747
Computer Experience:
still learning
Welshjim Reputation Level


Sue--Have you read
http://www.microsoft.com/technet/pro.../sp2aumng.mspx ?
Even after April 12, I would assume that at worst you will still have the options in Automatic Update to no longer notify you or download but not install in addition to automatic download/install. It is hard to believe that MS would force you to install SP2.

You could also call MS at 1-866-PCSAFETY to ask them what will happen.
Or (888) SP2-HELP
Both calls are free.


Last edited by Welshjim; 20th January 2005 at 02:20.
Welshjim is offline  
Old 20th January 2005   #3
Sue
Inactive
 
Profile:
Join Date: Apr 2002
Posts: 284
Computer Experience:
imtermediate
Sue Reputation Level


The problem is: we are a college with over 500 laptops. I would like windows updates to install, just not sp2. We are having some compability problems with sp 2. Certain applications that faculty requries them to install will not work. So I need to disable sp2 until atleast this summer when we can build a custom image, with sp2 and all the changes necessary for the applications to run.

I will call the numbers you listed.

Thanks

Sue is offline  
Old 20th January 2005   #4
Inactive
 
Profile:
Join Date: Jan 2002
Location: Albuquerque, NM, USA
Posts: 5,747
Computer Experience:
still learning
Welshjim Reputation Level


Sue--So set Automatic Updates to "Turn Off Automatic Updates" but visit the Windows Update site every week or so manually and ignore the offer for SP2.
http://v5.windowsupdate.microsoft.co....aspx?ln=en-us

Welshjim is offline  
Old 20th January 2005   #5
Sue
Inactive
 
Profile:
Join Date: Apr 2002
Posts: 284
Computer Experience:
imtermediate
Sue Reputation Level


We are talking over 500 students. Asking them to do updates is not a possibility. Let alone asking them to omit sp2.
Sue is offline  
Old 20th January 2005   #6
WindowsBBS Team Member
 
Rockster2U's Avatar
 
Profile:
Join Date: Apr 2002
Location: Mandeville, LA Katrina's Vacation Spot
Posts: 2,917
Computer Experience:
....
Rockster2U Reputation LevelRockster2U Reputation LevelRockster2U Reputation LevelRockster2U Reputation LevelRockster2U Reputation LevelRockster2U Reputation LevelRockster2U Reputation LevelRockster2U Reputation LevelRockster2U Reputation Level


From another perspective - two potential solutions.
1. Upgrade the faculty and hopefully, those problem apps become a non-issue.
2. Start Spring Break early and extend it into next fall.



edit after reading Sue's post below: Must have been my ambiguity - wasn't talking about upgrading Staff to SP2, was suggesting a new staff.


Last edited by Rockster2U; 20th January 2005 at 23:49.
Rockster2U is offline  
Old 20th January 2005   #7
Sue
Inactive
 
Profile:
Join Date: Apr 2002
Posts: 284
Computer Experience:
imtermediate
Sue Reputation Level


Staff cannot have the sp2. Our software vendor will not approve it. They will not provide us support if we install it. But they still only support sql 7.0.

In a few short words....we are in a fix.

Sue is offline  
Closed Thread

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Other Microsoft Documents/Information/Tools for SP2 Arie Windows XP 2 5th February 2005 00:57
SP2 and pop-up blocking hod Windows XP 4 23rd December 2004 05:04
XP, TI, SP2 Disasters r.leale Windows XP 1 16th September 2004 14:39
Several test installations of SP2 on the same hardware Christer Windows XP 9 12th September 2004 20:57
XP SP2 to ship in early August Paul Windows XP 2 13th July 2004 23:36


All times are GMT +1. The time now is 03:47.






Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2002 - 2008 WindowsBBS.com. All rights reserved.
Terms of Use, Legal Information & Privacy Policy
[]