Skip to content

DefenderControl v3.2.1

Latest

Choose a tag to compare

@SysAdminDoc SysAdminDoc released this 24 Apr 20:27
· 15 commits to main since this release

DefenderControl v3.2.1 - PowerShell 7 compatibility

Fixed

  • Running the script from PowerShell 7 (pwsh.exe) no longer errors out with "Wrong PowerShell Edition". The script now detects PS 7 / Core and auto-relaunches itself under Windows PowerShell 5.1 (powershell.exe) with all original arguments preserved.
  • CLI mode waits synchronously so stdout / stderr / exit codes return to the caller.
  • GUI mode fires a new window.
  • If the caller isn't already elevated, the re-launch also handles UAC in the same step.

Install

Download DefenderControl.ps1, verify SHA256 against SHA256SUMS.txt, run (it works from both powershell.exe and pwsh.exe now).

SHA256

698e240b0c422d64220615ca65dcd5c1a14112644fb90d1edad9d2c96e523693  DefenderControl.ps1