Open yamauchikazu opened 3 years ago
Workaround.
function RebuildDBIndexes {} in WSUS-cleanup.ps1
before: $status = SQLCMD -S \.\pipe\Microsoft##WID\tsql\query -i $SQLPath -I
after: if ( $script:SqlServer -match "microsoft##" ){ $status = SQLCMD -S \.\pipe\Microsoft##WID\tsql\query -i $SQLPath -I } else { $status = SQLCMD -S $script:SqlServer -i $SQLPath -I }
Workaround.
function RebuildDBIndexes {} in WSUS-cleanup.ps1
before: $status = SQLCMD -S \.\pipe\Microsoft##WID\tsql\query -i $SQLPath -I
after: if ( $script:SqlServer -match "microsoft##" ){ $status = SQLCMD -S \.\pipe\Microsoft##WID\tsql\query -i $SQLPath -I } else { $status = SQLCMD -S $script:SqlServer -i $SQLPath -I }