question

alideeb-0504 avatar image
0 Votes"
alideeb-0504 asked alideeb-0504 commented

cant configure Windows Defender firewall service, Exchange set up is failing

Hi All,

here is the error I am getting when trying to set up exchange server on my Azure VM:

"Microsoft.PowerShell.Commands.ServiceCommandException: Service 'Windows Defender Firewall (MpsSvc)' cannot be
configured due to the following error: Access is denied ---> System.ComponentModel.Win32Exception: Access is denied

azure-security-center
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @alideeb-0504 ,
which version of Exchange on which version of Windows Server are you trying to install please?


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

1 Vote 1 ·

I am trying to install Exchange 2016 on Windows 2012 server.

0 Votes 0 ·

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered alideeb-0504 commented

Hi @alideeb-0504 ,

a search in the internet with the error message will find some information about "unsupported" combinations of Exchange and Windows Server versions.
Even if the combination Exchange Server 2016 and Windows Server 2012 is supported may I ask you why did you choose Windows Server 2012?

Maybe it's an option to install the Exchange Sever 2016 on a Windows Server 2016. At least it's maybe worth to test if this is working without any issue.

Are you using a local administrators account for installing Exchange Server?

Maybe it's an option to deinstall Windows Defender to get the Exchange setup done:


 # Run this before Exchange setup
 Remove-WindowsFeature Windows-Defender-Features
 # Run this after Echange setup is done
 Add-WindowsFeature Windows-Defender-Features,Windows-Defender-Gui


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I just checked and windows defender is not installed as extension on the azure vm

1 Vote 1 ·

I will try that command.

Windows server 2012 supports exchange 2016 I successfully installed it on hyper-v vms, that’s what made me think that Windows server 2012 on azure vm is different and maybe comes with more software installed like windows defender, I don’t have windows defender installed on the hyper-v vm on my local desktop.

0 Votes 0 ·

hi AndreasBaumgarten i get this error when i try to run commands you provided :

PS C:\Users\adadmin.CORP> Remove-WindowsFeature Windows-Defender-Features
Remove-WindowsFeature : ArgumentNotValid: The role, role service, or feature name is not valid:
'Windows-Defender-Features'. The name was not found.
At line:1 char:1
+ Remove-WindowsFeature Windows-Defender-Features
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Windows-Defender-Features:String) [Uninstall-WindowsFeature], Exceptio
n
+ FullyQualifiedErrorId : NameDoesNotExist,Microsoft.Windows.ServerManager.Commands.RemoveWindowsFeatureCommand

0 Votes 0 ·