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?
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?