Announcement

Collapse
No announcement yet.

windows updates

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • windows updates

    hello,

    i would like to know if there is any tool to check list of windows updates installed on windows server 2008 and windows 7 machines. no wsus is involved. i dont want to go in programs and features and write down all the windows updates installed.
    i want to export the list in an spreadsheet.

    thank you

  • #2
    Re: windows updates

    From www.powershell.com

    Getting Installed Updates
    PowerShell is great for parsing log files. Here is a function that extracts all installed Windows updates from an internal log file and returns the information as pure PowerShell objects. Have a look as this code uses a number of powerful parsing and wrapping techniques:

    function Get-Updates {
    Get-Content$env:windir\windowsupdate.log-encodingutf8 |
    Where-Object { $_-like'*successfully installed*'} |
    ForEach-Object {
    $info=$_.Split("`t")
    $hash= @{}
    $hash.InstallDate= [DateTime]$info[6].Remove($info[6].LastIndexOf(":"))
    $hash.Product =$info[-1].Split(":")[-1].Trim()
    New-ObjectPSobject-property$hash
    }
    }

    Get-Updates
    With a little work, this could be exported into a spreadsheet.

    Comment


    • #3
      Re: windows updates

      thank you for your reply but i am not familiar with powershell
      is there anything else you could suggest me?

      thanks a lot

      Comment


      • #4
        Re: windows updates

        see if this helps

        http://technet.microsoft.com/en-us/s.../cc184924.aspx

        Comment


        • #5
          Re: windows updates

          awesome
          thk u so much

          Comment

          Working...
          X