When trying to open windows defender on windows 10 a Message box pops up saying "This app is turned off by group policy - To allow this app to run, contact your Security Administrator to enable the program via group policy" and also same happens in the settings
where it shows as being off.
How can't I get it to switch back on I've tried the options given in the community but it still does not switch on. Please can someone help.

When you see this message****on a home PC, it’s normally the handiwork of malware that’s impersonating the “administrator” – so the first thing that you’ll have to do is scan the system with a balanced combination
of trusted third-party Antivirus/Antimalware tools. This is what I would recommend:
Kaspersky Virus Removal Tool:
http://support.kaspersky.com/viruses/kvrt2015
Emsisoft Emergency Kit:
http://www.emsisoft.com/en/software/eek/
Malwarebytes Anti-Malware (free version only):
https://www.malwarebytes.org/antimalware/
Eset Online Scanner:
http://www.eset.com/us/online-scanner/
Some other trusted third-party malware-removal tools are listed here:
https://answers.microsoft.com/en-us/protect/wiki/protect_other-protect_scanning/list-of-malware-removal-tools/d824b9af-ebd8-4c47-94e2-8ee6c544c100
Then attempt to turn Defender back on with one of the methods described in this thread:
https://answers.microsoft.com/en-us/protect/forum/protect_defender-protect_start/windows-defender-turned-off-by-group-policy/bcbe6404-88d4-400c-be7a-29a865c126b7
Also see the answer in this thread:
https://answers.microsoft.com/en-us/protect/forum/protect_defender-protect_scanning/windows-defender-this-app-is-turned-off-by-group/dfa59c2a-b358-4f62-80b6-6b8e4994dc32
We’ve seen an unusually high incidence of Windows Defender getting disabled by
Group Policy lately, and that’s got me wondering if some third-party AV/Antimalware app might be disabling Windows Defender via
Group Policy. That’s not a normal procedure, and it’s really not an acceptable procedure – because this would prevent users from enabling Defender’s new
Limited Periodic Scanning feature. So if people who are having this issue would routinely report their primary AV app; whether or not they had turned on
Limited Periodic Scanning; and also any other Security apps that they might be using; that information might help us solve the mystery.
If you’re using Windows Defender in a standalone configuration, don’t wait until you see
sure signs of an infection before you scan your PC with the above third-party malware removal tools – use them on a regular basis. Remember that “Limited Periodic Scanning” is a two-way street: If you’re using a third-party
AV app, then you should definitely have Windows Defender’s Limited Periodic Scanning mode enabled so it can find things that the third-party AV app might miss. And conversely, if you’re using Windows Defender for
your primary AV protection, then you should be scanning your PC regularly (periodically) with a well-balanced group of dependable third-party Antivirus/Antimalware scanners in order to find anything that Defender might have missed.
GreginMich