Hi,
Here is the script I used for searching the updates arrived in recent 7 days:
[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer()
$updatescope = New-Object Microsoft.UpdateServices.Administration.UpdateScope
$updatescope.FromArrivalDate = (get-date).adddays(-7)
$updatescope.ToArrivalDate = get-date
$wsus.GetUpdates($updatescope)
Best Regards.
Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.