Hi there,
You can follow the steps in the below article to turn on and off the defender in your environment.
Turn off Defender antivirus protection in Windows Security https://support.microsoft.com/en-us/windows/turn-off-defender-antivirus-protection-in-windows-security-99e6004f-c54c-8509-773c-a4d776b77960
Turn on Microsoft 365 Defender https://learn.microsoft.com/en-us/microsoft-365/security/defender/m365d-enable?view=o365-worldwide
If you are comfortable with Powershell then you can try out the below article for some insights. Use PowerShell cmdlets to configure and manage Microsoft Defender Antivirus https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/use-powershell-cmdlets-microsoft-defender-antivirus?view=o365-worldwide
---------------------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer–