Created
January 20, 2013 15:04
-
-
Save dfinke/4579254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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