< Back

Get-MsrcSecurityUpdate

Sat Jan 18, 2020 4:50 pm

NAME Get-MsrcSecurityUpdate



SYNOPSIS

Get MSRC security updates





SYNTAX

Get-MsrcSecurityUpdate [<CommonParameters>]



Get-MsrcSecurityUpdate [-After <DateTime>] [-Before <DateTime>] [<CommonParameters>]



Get-MsrcSecurityUpdate -Year <Int32> [<CommonParameters>]



Get-MsrcSecurityUpdate -Vulnerability <String> [<CommonParameters>]





DESCRIPTION

Calls the CVRF Update API to get a list of security updates





PARAMETERS

-After <DateTime>

Get security updates released after this date



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Before <DateTime>

Get security updates released before this date



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Year <Int32>

Get security updates for the specified year (ie. 2016)



Required? true

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Vulnerability <String>

Get security updates for the specified Vulnerability CVE (ie. CVE-2016-0128)



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





An API Key for the MSRC CVRF API is required

To get an API key, please visit https://portal.msrc.microsoft.com



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-MsrcSecurityUpdate



Get all the updates









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-MsrcSecurityUpdate -Vulnerability CVE-2017-0003



Get all the updates containing Vulnerability CVE-2017-003









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-MsrcSecurityUpdate -Year 2017



Get all the updates for the year 2017









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Get-MsrcSecurityUpdate -Cvrf 2017-Jan



Get all the updates for the CVRF document with ID of 2017-Jan









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>Get-MsrcSecurityUpdate -Before 2017-01-01



Get all the updates before January 1st, 2017









-------------------------- EXAMPLE 6 --------------------------



PS C:\\>Get-MsrcSecurityUpdate -After 2017-01-01



Get all the updates after January 1st, 2017









-------------------------- EXAMPLE 7 --------------------------



PS C:\\>Get-MsrcSecurityUpdate -Before 2017-01-01 -After 2016-10-01



Get all the updates before January 1st, 2017 and after October 1st, 2016









-------------------------- EXAMPLE 8 --------------------------



PS C:\\>Get-MsrcSecurityUpdate -After (Get-Date).AddDays(-60) -Before (Get-Date)



Get all updates between now and the last 60 days











RELATED LINKS