Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Update Services > How to empty or reduce the size of the Windows Update Log?

Reply
Thread Tools Display Modes

How to empty or reduce the size of the Windows Update Log?

 
 
Bruce Sanderson
Guest
Posts: n/a

 
      07-18-2009
I notice that the Windows Update Log (%systemroot%\WindowsUpdate.log) on
client computers is big and has records going back several years. This
makes it slow to open and view current entries to diagnose problems.

If I try and delete it, or open it in Notepad, delete some records, then
attempt to Save it, I get told that the file is in use by another process so
it can't be deleted (or renamed) or saved.

Is there a way to delete, rename or reduce the size of this log file?

--
Bruce Sanderson
http://members.shaw.ca/bsanders

It is perfectly useless to know the right answer to the wrong question.





 
Reply With Quote
 
 
 
 
Lawrence Garvin [MVP]
Guest
Posts: n/a

 
      07-19-2009

"Bruce Sanderson" <> wrote in message
news:OMqJ4B%...
>I notice that the Windows Update Log (%systemroot%\WindowsUpdate.log) on
>client computers is big and has records going back several years.


This is *extremely* abnormal.


> Is there a way to delete, rename or reduce the size of this log file?


Yes.

1. Stop the Automatic Updates service. (net stop wuauserv)

2. Delete the entire logfile (delete %windir%\WindowsUpdate.log)

3. Restart the Automatic Updates service (net start wuauserv)

The logfile is supposed to be maintained by the WUAgent. It's a rotating log
file and should auto-rotate approximately every 30 days or at 2MB size.

However, if permissions got changed on the logfile, or some other scenario
occurred that interfered with the default configuration, it's possible that
the WUAgent was unable to clear the logfile. Deleting the file and allowing
the WUAgent to recreate the file should resolve this issue.


--
Lawrence Garvin, M.S., MCITP:EA, MCDBA
Principal/CTO, Onsite Technology Solutions, Houston, Texas
Microsoft MVP - Software Distribution (2005-2009)

MS WSUS Website: http://www.microsoft.com/wsus
My MVP Profile: http://mvp.support.microsoft.com/pro...awrence.Garvin

 
Reply With Quote
 
Bruce Sanderson
Guest
Posts: n/a

 
      08-08-2009
Thanks, Gavin.

None of the Update logs I looked at are over 2 MB, but some are close to
that.

Most of them had entries several months old - e.g. going back to February or
March, 2009.

--
Bruce Sanderson
http://members.shaw.ca/bsanders

It is perfectly useless to know the right answer to the wrong question.





"Lawrence Garvin [MVP]" <> wrote in message
news:#...
> "Bruce Sanderson" <> wrote in message
> news:OMqJ4B%...
>>I notice that the Windows Update Log (%systemroot%\WindowsUpdate.log) on
>>client computers is big and has records going back several years.

>
> This is *extremely* abnormal.
>
>
>> Is there a way to delete, rename or reduce the size of this log file?

>
> Yes.
>
> 1. Stop the Automatic Updates service. (net stop wuauserv)
>
> 2. Delete the entire logfile (delete %windir%\WindowsUpdate.log)
>
> 3. Restart the Automatic Updates service (net start wuauserv)
>
> The logfile is supposed to be maintained by the WUAgent. It's a rotating
> log file and should auto-rotate approximately every 30 days or at 2MB
> size.
>
> However, if permissions got changed on the logfile, or some other scenario
> occurred that interfered with the default configuration, it's possible
> that the WUAgent was unable to clear the logfile. Deleting the file and
> allowing the WUAgent to recreate the file should resolve this issue.
>
>
> --
> Lawrence Garvin, M.S., MCITP:EA, MCDBA
> Principal/CTO, Onsite Technology Solutions, Houston, Texas
> Microsoft MVP - Software Distribution (2005-2009)
>
> MS WSUS Website: http://www.microsoft.com/wsus
> My MVP Profile: http://mvp.support.microsoft.com/pro...awrence.Garvin
>

 
Reply With Quote
 
Lawrence Garvin [MVP]
Guest
Posts: n/a

 
      08-08-2009
"Bruce Sanderson" <> wrote in message
news:...
> Thanks, Gavin.
>
> None of the Update logs I looked at are over 2 MB, but some are close to
> that.


This is as expected.

> Most of them had entries several months old - e.g. going back to February
> or March, 2009.


Could be that I'm mistaken on the 30 days...

Could also be that the retention rules have been changed between WUAgent
versions...

On my Win7 RC machine, the logfile is slightly < 2MB and goes back to
6/12/09 (the installation date of the machine).

On my Vista SP2 machine, the logfile is only 1.3MB and only goes back 30
days (7/4/09).

The Vista machine is running the WSUS2SP2 RC v7.4 WUAgent; the Win7 RC
machine is running the Win7 native v7.3 WUAgent (not sure why it's not
selfupdated from my WSUS2SP2 RC server to the v7.4 WUAgent -- but it says no
selfupdate needed -- Interesting).

I also have a WinXP machine running the RC v7.4 WUAgent, and it has a 1.5MB
logfile going back to June 29th, which is the creation date of that logfile.

So maybe there's something unique going on in the Vista environment that's
truncating the log at 30 days, but not on other platforms.


--
Lawrence Garvin, M.S., MCITP:EA, MCDBA
Principal/CTO, Onsite Technology Solutions, Houston, Texas
Microsoft MVP - Software Distribution (2005-2009)

MS WSUS Website: http://www.microsoft.com/wsus
My MVP Profile: http://mvp.support.microsoft.com/pro...awrence.Garvin

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't reduce size of drive C: enough tony Windows Vista File Management 7 09-11-2008 01:16 PM
Reduce Image viewing size in Windows Mail Program Josh Windows Vista Mail 2 09-04-2007 12:10 PM
Reduce font size or increase size of program guide grid? Dan Windows Vista Music, Pictures and Video 0 02-04-2007 07:31 AM
How to reduce the size of the SBS Monitoring Log? Brian Williams Windows Small Business Server 2 06-13-2006 04:54 PM
Need to reduce file size BOB Windows Media Player 15 04-27-2006 10:59 PM



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 47 48 49 50 51 52 53 54 55 56 57 58 59