Apr 02 2021 11:03 PM
Error:
The following error was generated when "$error.Clear();
if (Get-Service MpsSvc* | ?{$_.Name -eq 'MpsSvc'})
{
Set-Service MpsSvc -StartupType Automatic
Start-SetupService -ServiceName MpsSvc
}
" was run: "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
--- End of inner exception stack trace ---".
Apr 07 2021 12:41 AM
Open the PowerShell console with "Run as administrator" permission and run the commands again.
Apr 07 2021 12:52 AM
thankyou @Kevin Morgan, this is automated script. Runs while installing exchange server.
Apr 07 2021 01:02 AM - edited Apr 07 2021 01:04 AM
Can you confirm that you have logged-in to the server with domain admin user account instead of local admin user account?
Also ensure that your server machine is successfully joined with your domain.
Also check the below thread if you have not already checked.
https://github.com/MicrosoftDocs/OfficeDocs-Exchange/issues/1882