Skip to content

Comments

Feature/windows update maintenance#12

Merged
leonardokr merged 5 commits intomainfrom
feature/windows-update-maintenance
Feb 18, 2026
Merged

Feature/windows update maintenance#12
leonardokr merged 5 commits intomainfrom
feature/windows-update-maintenance

Conversation

@leonardokr
Copy link
Owner

No description provided.

- Recheck stage now respects $SkipSQLServiceCheck parameter instead of
  hardcoding $false
- Remove unused $Timeout param from Invoke-UpdateCheck remote scriptblock
  and its ArgumentList since it was never used
- Add null guard for $logFilePath in outer catch block
- Fix author field to match repository convention

Closes #4
Closes #5
…aintenance

Fix: correct Recheck stage SQL check and remove unused Timeout param
…ance

- Move $null to left side of comparisons (PSPossibleIncorrectComparisonWithNull)
- Rename Get-SQLServerServices -> Get-SQLServerService (PSUseSingularNouns)
- Rename Invoke-FinalizeUpdates -> Invoke-FinalizeUpdate (PSUseSingularNouns)
- Remove unused TimeoutMinutes param from Invoke-UpdateCheck and WSUSTimeoutMinutes from script params (PSReviewUnusedParameter)
- Add [CmdletBinding(SupportsShouldProcess)] to Invoke-ServerReboot (PSShouldProcess)
- Suppress PSUseUsingScopeModifierInNewRunspaces on Invoke-FinalizeUpdate (uses -ArgumentList pattern)
@leonardokr leonardokr closed this Feb 18, 2026
@leonardokr leonardokr reopened this Feb 18, 2026
… level

Function-level SuppressMessage does not work for this rule as
PSScriptAnalyzer evaluates it at the ScriptBlock scope. Moving the
suppression to the script-level param block with justification that
variables are passed via -ArgumentList and param() block.
@leonardokr leonardokr merged commit 6474d88 into main Feb 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant