Script to automate MBSA scan and download missing patches
hi, not powershell guy go easy on me here. found script use. script scans missing patches via ms's mbsa, downloads them , generates batch file install missing ones. issue having command downloads patches doesn't download anything. author of script has closed wrote on site future comment. ideas? $updatexml = “updates.xml” $tofolder = “c:\temp\” $installfile = $tofolder +”\_install.bat” #initialize webclient downloading files $webclient = new-object net.webclient $webclient.usedefaultcredentials = $true # content of xml file $updates = [xml](get-content $updatexml) “@echo off” | out-file $installfile “rem install patches” | out-file $installfile -append foreach ($check in $updates.xmlout.check) { write-host “checking for”, $check.name write-host $check.advice.tostring() #checking files download foreach ($updatedata in $check.detail.updatedata) { if ($updatedata.isinstalled -eq $f...