File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
<# PSScriptInfo
2
2
3
3
.Version
4
- 1.1
4
+ 1.2
5
5
.Guid
6
6
038a1c05-b1da-48c9-893d-4084b99f831b
7
7
.Author
13
13
.ExternalModuleDependencies
14
14
NetTCPIP
15
15
.ReleaseNotes
16
- Missed the -ErrorAction Stop in the Test-WSMan call, this is needed to fall back to DCOM .
16
+ Updated HotFixID Query to use Where-Object instead of .Where() to support older versions of PowerShell .
17
17
18
18
#>
19
19
@@ -161,9 +161,10 @@ begin {
161
161
162
162
# Hotfix Data
163
163
Write-Progress - Activity " Gathering EternalBlue vulnerability information from '$nameValue '" - CurrentOperation " Retrieve operating hotfix id" - PercentComplete 40
164
- $appliedHotFixID = (Get-CimInstance - CimSession $CimSession - ClassName Win32_QuickFixEngineering).Where ({
165
- $_.HotFixID -in $HotfixIDs
166
- }).HotFixID
164
+ $appliedHotFixID = (Get-CimInstance - CimSession $CimSession - ClassName Win32_QuickFixEngineering |
165
+ Where-Object {
166
+ $_.HotFixID -in $HotfixIDs
167
+ }).HotFixID
167
168
168
169
# SMB1Feature Data
169
170
Write-Progress - Activity " Gathering EternalBlue vulnerability information from '$nameValue '" - CurrentOperation " Retrieve SMB1 feature state" - PercentComplete 60
You can’t perform that action at this time.
0 commit comments