File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ if (!$RollbackMitigation) {
254
254
$msiexecPath = $env: WINDIR + " \System32\msiexec.exe"
255
255
Start-Process - FilePath $msiexecPath - ArgumentList $arguments - Wait
256
256
Start-Sleep - Seconds 15
257
- $RewriteModule = Get-InstalledSoftware | Where-Object { $_ .Name -like " *IIS* " -and $_.Name -like " *URL*" -and $_.Name -like " *2*" }
257
+ $RewriteModule = Get-InstalledSoftware - Name IIS | Where-Object { $_.Name -like " *URL*" -and $_.Name -like " *2*" }
258
258
if ($RewriteModule ) {
259
259
Write-Verbose " [OK] IIS URL Rewrite Module 2 installed on $env: computername "
260
260
} else {
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ Function BackendCookieMitigation {
278
278
Write-Verbose " [INFO] Checking for IIS URL Rewrite Module 2 on $env: computername "
279
279
280
280
# If IIS 10 check for URL rewrite 2.1 else URL rewrite 2.0
281
- $RewriteModule = Get-InstalledSoftware | Where-Object { $_ .Name -like " *IIS* " -and $_.Name -like " *URL*" -and $_.Name -like " *2*" }
281
+ $RewriteModule = Get-InstalledSoftware - Name IIS | Where-Object { $_.Name -like " *URL*" -and $_.Name -like " *2*" }
282
282
$IISVersion = Get-ItemProperty HKLM:\SOFTWARE\Microsoft\InetStp\ | Select-Object versionstring
283
283
284
284
$RewriteModuleInstallLog = ($PSScriptRoot + ' \' + ' RewriteModuleInstallLog.log' )
You can’t perform that action at this time.
0 commit comments