XP SP3 silent uninstall
hi,We need to uninstall SP3 from 100 pcs. Isthere any way to remove SP3 silentllybyusing script? thanks
December 9th, 2008 12:37pm

I would "improvise" on the steps detailed here:http://support.microsoft.com/default.aspx/kb/950249Run c:\windows\$NtServicePackUninstall$\spuninst\spuninst.exe from the "hidden" $NtServicePackUninstall$ folder. Note all the options and information you have to supply during the uninstallation. Create a VBS script that calls spuninst.exe and uses {sendkeys} to supply the "keystrokes" required.http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_hilv.mspx?mfr=truehttp://msdn.microsoft.com/en-us/library/8c6yea83(VS.85).aspxRegards,Salvador Manaois IIIMCITP | Server/Enterprise AdministratorMCSE MCSA MCTS C|EH CIWABytes & Badz: http://badzmanaois.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
December 10th, 2008 10:40am

Hi, There are two scripts you can performance to achieve the task: Scripts 1: Use VBScript Copy the following code and save to a VBS file. ----------------------------------------------- strComputer = "." Set WshShell = WScript.CreateObject("WScript.Shell") Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colOperatingSystems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem") For Each objOperatingSystem in colOperatingSystems If objOperatingSystem.ServicePackMajorVersion = "3" Then WshShell.Run "%windir%\$NtServicePackUninstall$\spuninst\spuninst.exe -u -f", 1, True WshShell.Run "%windir%\system32\shutdown.exe -r -f -t 5 -c " & chr(34) & "Service Pack 3 has been uninstalled from your computer. The computer will now be restarted." & chr(34) End If Next ----------------------------------------------- Note: This script checks the current SP level, if SP3 detected, uninstalls it and reboots, otherwise it does nothing. Disclaimer: These sample scripts are not supported under any Microsoft standard support program or service. The sample scripts are provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if Microsoft has been advised of the possibility of such damages. Scripts 2: Use CMD/BAT file Copy the following code and save to a CMD or BAT file. ----------------------------------------------------------------------------------------------------------------- start /wait C:\WINDOWS\$NtServicePackUninstall$\spuninst\spuninst.exe /quiet /passive /forcerestart ----------------------------------------------------------------------------------------------------------------- Add the above script to the logon script of Domain Controller. If you want to uninstall SP3 from 100 computers at the same time, you should add them to a Domain. Note: Only the computer installed SP3 from XP SP2 that can uninstall the SP3. If the OS installed from a XP SP3 CD(SP3 split inside), the SP3 cant be uninstalled. In addition, please test the scripts on one computer first, if it works properly, you can do it on the another computers. Best regards, Vincent Hu
December 10th, 2008 10:42am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics