Showing posts with label MBAMReport. Show all posts
Showing posts with label MBAMReport. Show all posts

Tuesday 31 May 2022

Solved: Disable-MbamReport : The request failed with HTTP status 404: Not Found.

Resolution to below error when you attempt to Disable MBAM report using PowerShell or MBAM server setup:

CmdletError:
Disable-MbamReport : The request failed with HTTP status 404: Not Found.
At C:\Users\p1jebastin\Desktop\Remove-MbamFeatures-Reports.ps1:2 char:1
+ Disable-MbamReport -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Disable-MbamReport], WebException
+ FullyQualifiedErrorId : System.Net.WebException,Microsoft.Mbam.Server.Commands.DisableMbamReportCommand

Please find the detailed Event log - Microsoft-Windows-MBAM-Setup/Admin:

Cmdlet error.

Description:
Exception(s) thrown from the feature provider:
System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The request failed with HTTP status 404: Not Found.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.Mbam.Setup.Common.Reports.ReportsManager.CreateParentFolder(ReportsManagerState state)
at Microsoft.Mbam.Setup.Common.Reports.ReportsManager.DeployReports(ReportsManagerState state, DataSourceDefinition definition)
at Microsoft.Mbam.Setup.Common.Reports.ReportsManager.RemoveReports()
at Microsoft.Mbam.Setup.Common.ActionItem.Run()
at Microsoft.Mbam.Setup.Common.ActionItemQueue.Run()
at Microsoft.Mbam.Setup.Common.Reports.ReportsFeatureProvider.Disable(IProgress`1 progress, CancellationToken cancellationToken, ReportsConfiguration configuration)
at Microsoft.Mbam.Setup.Common.FeatureProviderBase`1.<>c_DisplayClass34`1.<InvokeAsync>b33()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Mbam.Setup.Common.FeatureProviderBase`1.<InvokeAsync>d
36`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Mbam.Setup.Common.FeatureProviderBase`1.<DisableAsync>d
18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Mbam.Setup.Common.FeatureProviderBase`1.<>c
DisplayClasse.<<DisableAsync>bd>d10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Mbam.Setup.Common.FeatureProviderBase`1.<DisableAsync>d
14.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.Mbam.Server.Commands.FeatureOperation`1.DisableFeature(T configuration)
---> (Inner Exception #0) System.Net.WebException: The request failed with HTTP status 404: Not Found.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.Mbam.Setup.Common.Reports.ReportsManager.CreateParentFolder(ReportsManagerState state)
at Microsoft.Mbam.Setup.Common.Reports.ReportsManager.DeployReports(ReportsManagerState state, DataSourceDefinition definition)
at Microsoft.Mbam.Setup.Common.Reports.ReportsManager.RemoveReports()
at Microsoft.Mbam.Setup.Common.ActionItem.Run()
at Microsoft.Mbam.Setup.Common.ActionItemQueue.Run()
at Microsoft.Mbam.Setup.Common.Reports.ReportsFeatureProvider.Disable(IProgress`1 progress, CancellationToken cancellationToken, ReportsConfiguration configuration)
at Microsoft.Mbam.Setup.Common.FeatureProviderBase`1.<>c
DisplayClass34`1.<InvokeAsync>b33()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Mbam.Setup.Common.FeatureProviderBase`1.<InvokeAsync>d
36`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Mbam.Setup.Common.FeatureProviderBase`1.<DisableAsync>d
18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Mbam.Setup.Common.FeatureProviderBase`1.<>c
DisplayClasse.<<DisableAsync>bd>d10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Mbam.Setup.Common.FeatureProviderBase`1.<DisableAsync>d
_14.MoveNext()<---


Resolution:

  1. Open registry editor as administrator
  2. Goto Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MBAM Server\Enabled
  3. Right click Reports and choose Modify
  4. Modify the value from 1 to 0
  5. And re-run the MBAM setup to add Reports configuration again.

Let me know in comments if you have alternate way to resolve the error.

FREE Cybersecurity Certifications

Here's 15 FREE courses provided by the Qualys. The cybersecurity firm Qualys focuses on providing cloud-based security and compliance so...