PowerShell cmdlets to check WindowsUpdate and return patch list.
This script is intended for offline Windows patching. (MBSA 2.2 currently not support Windows 8/Windows Server 2012)
following sample check WindowsUpdate for specified computer, and download files to network share.
$params=@{
TargetComputer = "172.16.100.2"
Credential = Get-Credential -UserName "localhost\Administrator" -Message "Enter credential"
DownloadFolder = "\\172.16.0.1\Shared\Images\WindowsUpdate\Windows8"
WindowsUpdateFilte = "IsHidden=0"
}
#Remove files that updated periodically
Get-ChildItem $params.DownloadFolder | where Name -Like "am_delta_*.exe" | Remove-Item #Windows Defender Definition
Get-ChildItem $params.DownloadFolder | where Name -Like "im*.cab" | Remove-Item #IME patch
Get-ChildItem $params.DownloadFolder | where Name -Like "windows-kb890830-*.exe" | Remove-Item #Windows Malicious Software Removal Tool
Start-DownloadWindowsUpdateFile @params -Verbose
Hi Team,
How to modify the above code to download only give KB article number and save it local computer.
Request you to kindly help me to modify.
Thanks and regards,
senthil