Skip to content

Comments

fix: correct WhatIf check in Disable-LanmanCache.ps1#9

Merged
leonardokr merged 1 commit intomainfrom
fix/issue-3-whatif-disable-lanmancache
Feb 18, 2026
Merged

fix: correct WhatIf check in Disable-LanmanCache.ps1#9
leonardokr merged 1 commit intomainfrom
fix/issue-3-whatif-disable-lanmancache

Conversation

@leonardokr
Copy link
Owner

Replace undeclared $WhatIf variable with $WhatIfPreference automatic variable so the restart prompt is properly suppressed during -WhatIf runs.

Closes #3

Replace undeclared $WhatIf variable with $WhatIfPreference automatic
variable so the restart prompt is properly suppressed during -WhatIf runs.

Closes #3
@leonardokr leonardokr merged commit 4e1a295 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.

Bug: Incorrect WhatIf check in Disable-LanmanCache.ps1

1 participant