Upload files to "Utility Scripts"

This commit is contained in:
2026-07-01 18:52:40 +00:00
parent 0ac64963ce
commit 68272ac7e8
@@ -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
}