Skip to content

Error when I try to disable Windows Defender #1

Description

@poskot2

In Windows 11 Enterprise 26H1 28000.1896, when I try to disable Windows Defender, I get an error saying that bcdedit.exe can't be found, and the script stops running.
This is resolved by copying bcdedit.exe from %SystemRoot%\System32 to %SystemRoot%\SysWOW64.
Is it possible to prevent this error in the script and explicitly call bcdedit.exe from the %SystemRoot%\System32 folder?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions