Upload files to "Utility Scripts"
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
$UpdateSession = [activator]::CreateInstance([type]::GetTypeFromProgID("Microsoft.Update.Session",$ServerName))
|
||||
$UpdateSearcher = $UpdateSession.CreateupdateSearcher()
|
||||
$Updates = @($UpdateSearcher.Search("IsHidden=0 and IsInstalled=0").Updates)
|
||||
|
||||
ForEach($update in $updates){
|
||||
$UpdateTitle = $update.Title
|
||||
Write-Output $UpdateTitle
|
||||
}
|
||||
Reference in New Issue
Block a user