Skip to content

Instantly share code, notes, and snippets.

@dfinke
Created January 20, 2013 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfinke/4579254 to your computer and use it in GitHub Desktop.
Save dfinke/4579254 to your computer and use it in GitHub Desktop.
# http://p0w3rsh3ll.wordpress.com/2013/01/11/searching-microsoft-security-bulletins/
$MSBulletins = New-WebServiceProxy -Uri 'http://technet.microsoft.com/sto/services/BulletinSearch.asmx'
#int productId,
#bool mostRecent,
#string startDate,
#string endDate,
#Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1o_services_BulletinSearch_asmx.SortField sortField,
#Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1o_services_BulletinSearch_asmx.SortOrder sortOrder,
#int currentPage,
#int bulletinsPerPage,
#int languageId,
#string locale
$productId = 1
$mostRecent = $true
$startDate = "11/1/2012"
$endDate = "11/11/2012"
$sortField = [Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1o_services_BulletinSearch_asmx.SortField]::Date
$sortOrder = [Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1o_services_BulletinSearch_asmx.SortOrder]::Ascending
$currentPage = 1
$bulletinsPerPage = 10
$languageId = 100
$locale = "en-Us"
$MSBulletins.GetBulletins($productId, $mostRecent, $startDate, $endDate, $sortField, $sortOrder, $currentPage, $bulletinsPerPage, $languageId, $locale)
#$MSBulletins.GetBulletins(10, $mostRecent, $startDate, $endDate, $sortField, $sortOrder, 0, 0, $null, $null)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment