Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Last Windows Update except DefinitionUpdate for Microsoft Endpoint Protection

$
0
0

Heres the script

 

$objSession = New-Object -com "Microsoft.Update.Session"

$objSearcher= $objSession.CreateUpdateSearcher()

$colHistory = $objSearcher.QueryHistory(0, 1)

Foreach($objEntry in $colHistory)

{

 Write-host $objEntry.Title

 Write-host $objEntry.Date

}

 

 

scripts tells me whats the  last updates in the server.. however .. i want the script to tell me just the normal updates not any updates from Definition Update for Microsoft Endpoint Protection..

 

anything that you can help to see the light :) muchly appriciated


Viewing all articles
Browse latest Browse all 6937

Latest Images

Trending Articles



Latest Images