Enforcing policies with MDM