Enable Intune Remediations

Make sure you have at least one Microsoft 365 F3 license.
Enable the setting under Windows-licenseverification.