Fixed typo preventing WID database optimization

This commit is contained in:
awarre
2020-08-06 09:53:44 -04:00
parent 0188575a66
commit 6f01c8595c
+2 -2
View File
@@ -91,7 +91,7 @@ $recommendedIISSettings = @{
}
<#
DeepClean Tips
DeepClean
To find potentially unneeded updates:
1. WSUS management console
@@ -422,7 +422,7 @@ function Optimize-WsusDatabase {
if ($wsusSqlServerName -match 'SQLEXPRESS') {
$serverInstance = 'np:\\.\pipe\MSSQL$SQLEXPRESS\sql\query'
}
elseif (($wsusSqlServerName -match '##WIN') -Or ($wsusSqlServerName -match '##SSEE')) {
elseif (($wsusSqlServerName -match '##WID') -Or ($wsusSqlServerName -match '##SSEE')) {
#Check OS version
$osVersion = [decimal]("$(([environment]::OSVersion.Version).Major).$(([environment]::OSVersion.Version).Minor)")