Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - Remove update history

Reply
 
Old 03-03-2008   #1 (permalink)
ADKR


 
 

Remove update history

control panel/system and maintenance/windows update/view update history

I have a number of failed updates for various reasons. I would like to
delete them and leave the list of successful updates. Is this possible?
Thanks.

My System SpecsSystem Spec
Old 03-03-2008   #2 (permalink)
Mark L. Ferguson


 
 

Re: Remove update history

No, probably not, but if you want what was successful, open a command prompt
and run 'systeminfo'
e.g.
systeminfo > c:/success.txt

--
Was this helpful? Then click the "Yes" Ratings button. Voting helps the web
interface.
http://www.microsoft.com/wn3/locales....htm#RateAPost

Mark L. Ferguson

..
"ADKR" <ADKR@xxxxxx> wrote in message
news1DEA04F-6213-4E44-A2EF-33CD94B8B7BE@xxxxxx
Quote:

> control panel/system and maintenance/windows update/view update history
>
> I have a number of failed updates for various reasons. I would like to
> delete them and leave the list of successful updates. Is this possible?
> Thanks.
My System SpecsSystem Spec
Old 03-04-2008   #3 (permalink)
SG


 
 

Re: Remove update history

Hi,

Mark's way works, but I had to run the command prompt a Administrator.

For more information on what was successful and which failed along with a
description of each. Open Notepad and Copy/Paste the following...
Save/As Updates.vbs Credit goes to Author: Torgeir Bakken for this
script.

Start Copy Below
========================================


' Script that reports installed updates that are
' installed with Windows Update v5 technology
'
' Result will be written to %temp%\UpdateHistory.txt
' and then launched in Notepad
'
' Author: Torgeir Bakken
' Date 2004-08-12
'
Option Explicit


Const OverwriteIfExist = -1
Const OpenAsASCII = 0


Dim oWU, iTHCount, colUpdate, oUpdate, sStatus, iTotal
Dim iSuccess, iFailed, iAborted, iUnknown, sErrorCode
Dim oFSO, oShell, sFile, f


On Error Resume Next
Set oWU = CreateObject("Microsoft.Update.Searcher")


If Err.Number <> 0 Then
MsgBox "WU5 programming interface does not exist.", _
vbInformation + vbSystemModal, "Update history"
WScript.Quit
End If
On Error Goto 0


iTHCount = oWU.GetTotalHistoryCount
If iTHCount > 0 Then


Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oShell = CreateObject("Wscript.Shell")
sFile = oShell.ExpandEnvironmentStrings("%TEMP%") & "\UpdateHistory.txt"
Set f = oFSO.CreateTextFile(sFile, _
OverwriteIfExist, OpenAsASCII)


iTotal = 0
iSuccess = 0
iFailed = 0
iAborted = 0
iUnknown = 0


f.WriteLine "Report run at " & Now
f.WriteLine "---------------------------------" _
& "---------------------------------"


Set colUpdate = oWU.QueryHistory(0, iTHCount)


For Each oUpdate In colUpdate
f.WriteLine "Title:" & vbTab & vbTab & vbTab & oUpdate.Title
f.WriteLine "Description:" & vbTab & vbTab & oUpdate.Description
f.WriteLine "Date/Time in GMT:" & vbTab & oUpdate.Date
f.WriteLine "Install mechanism:" & vbTab & oUpdate.ClientApplicationID


sErrorCode = ""
Select Case oUpdate.ResultCode
Case 2
sStatus = "Succeeded"
iSuccess = iSuccess + 1
Case 4
sStatus = "Failed"
iFailed = iFailed + 1
sErrorCode = oUpdate.UnmappedResultCode
Case 5
sStatus = "Aborted"
iAborted = iAborted + 1
Case Else
sStatus = "Unknown"
iUnknown = iUnknown + 1
End Select


If sStatus = "Failed" Then
f.WriteLine "Install error:" & vbTab & vbTab & sErrorCode
End If


f.WriteLine "Install status:" & vbTab & vbTab & sStatus
f.WriteLine "---------------------------------" _
& "---------------------------------"


iTotal = iTotal + 1
Next


f.WriteLine
f.WriteLine "Total number of updates found: " & iTotal
f.WriteLine "Number of updates succeeded: " & iSuccess
f.WriteLine "Number of updates failed: " & iFailed
f.WriteLine "Number of updates aborted: " & iAborted


f.Close
oShell.Run "notepad.exe " & """" & sFile & """", 1, False
Else


MsgBox "No entries found in Update History.", _
vbInformation + vbSystemModal, "Update history"


End If


=======================================
End Copy Above

--
All the best,
SG

ALEX NICHOL
(1935-2005)
http://www.aumha.org/alex.htm
You will never be forgotten my friend

"ADKR" <ADKR@xxxxxx> wrote in message
news1DEA04F-6213-4E44-A2EF-33CD94B8B7BE@xxxxxx
Quote:

> control panel/system and maintenance/windows update/view update history
>
> I have a number of failed updates for various reasons. I would like to
> delete them and leave the list of successful updates. Is this possible?
> Thanks.
My System SpecsSystem Spec
Old 03-04-2008   #4 (permalink)


 
 

Re: Remove update history

"ADKR" wrote in message
news1DEA04F-6213-4E44-A2EF-33CD94B8B7BE@xxxxxx
Quote:

> control panel/system and maintenance/windows update/view update history
>
> I have a number of failed updates for various reasons. I would like to
> delete them and leave the list of successful updates. Is this possible?
> Thanks.

You want to look here...

Control Panel > Programs > Programs and Features > View Installed Updates


My System SpecsSystem Spec
Old 03-04-2008   #5 (permalink)
Bob


 
 

Re: Remove update history

If it failed there's nothing to delete/uninstall.

<here@xxxxxx> wrote in message
news:%23zQGJgffIHA.2268@xxxxxx
Quote:

> "ADKR" wrote in message
> news1DEA04F-6213-4E44-A2EF-33CD94B8B7BE@xxxxxx
Quote:

>> control panel/system and maintenance/windows update/view update history
>>
>> I have a number of failed updates for various reasons. I would like to
>> delete them and leave the list of successful updates. Is this possible?
>> Thanks.
>
>
> You want to look here...
>
> Control Panel > Programs > Programs and Features > View Installed Updates
>
My System SpecsSystem Spec
Old 03-04-2008   #6 (permalink)
ADKR


 
 

RE: Remove update history

Thanks everyone for taking a shot at this. My issue, deleting failed updates
from the list described below looks like a bust. I don't want to
uninstall/view/whatever. I just want to delete the list/notifications/titles
of failed installs. It isn't earth shaking, just an annoyance.

"ADKR" wrote:
Quote:

> control panel/system and maintenance/windows update/view update history
>
> I have a number of failed updates for various reasons. I would like to
> delete them and leave the list of successful updates. Is this possible?
> Thanks.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Remove update history Windows Updates
Can't see SP1 in Update History Vista installation & setup
Print update history Vista General
Print Update History Vista mail
remove windows installation history Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46