Fix IT Scripts
0 like 0 dislike
34 views
I'm not sure what I need to change as this isn't working for me. "Unknown Error"

$hotfixes = "KB4012212", "KB4012217", "KB4015551", "KB4019216", "KB4012216", "KB4015550", "KB4019215", "KB4013429", "KB4019472", "KB4015217", "KB4015438", "KB4016635"

$computer = $ENV:COMPUTERNAME

$hotfix = Get-HotFix -ComputerName $computer |
Where-Object {$hotfixes -contains $_.HotfixID} |
Select-Object -property "HotFixID"

if($hotfix) {
Write-Output "$computer has hotfix $hotfix installed"
} else {
Write-Output "$computer is missing hotfix"
}
asked in Operating Systems by (3.1k points) | 34 views

1 Answer

0 like 0 dislike
There is a thread about that script on Linked-In:

https://www.linkedin.com/groups/1986499/1986499-6291696798281068545
answered by (887 points)

Related questions

0 like 0 dislike
0 answers
0 like 0 dislike
1 answer
asked Mar 22 in MaxFocus RMM by Heinu (150 points) | 117 views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Aug 11, 2017 in WinSCP by doughall (3.1k points) | 24 views
30 questions
24 answers
17 comments
634 users