You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I acknowledge that I've read the requirements and my system meets them. 👍
Is your Windows Installation Genuine?
Yes, I acknowledge that the installation media of the Windows OS I used the tool on was downloaded from the official Microsoft website and I didn't tamper or modify it. 💯
Did You Read The Frequently Asked Questions?
Yes, I've referred to the FAQs and my issue is not covered/explained in there.
Please Explain The Bug
Exception: System.TimeoutException: Timeout exceeded while waiting for the MDM policy files to be created.
at HardenWindowsSecurity.InvokeConfirmation.Invoke(String[] Categories)
at HardenWindowsSecurity.GUIMain.NavigationVM.<>c__DisplayClass3_0.b__15()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at HardenWindowsSecurity.GUIMain.NavigationVM.<>c__DisplayClass3_0.<b__7>d.MoveNext()
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Exception Message: Timeout exceeded while waiting for the MDM policy files to be created.
Exception StackTrace: at HardenWindowsSecurity.InvokeConfirmation.Invoke(String[] Categories)
at HardenWindowsSecurity.GUIMain.NavigationVM.<>c__DisplayClass3_0.b__15()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at HardenWindowsSecurity.GUIMain.NavigationVM.<>c__DisplayClass3_0.<b__7>d.MoveNext()
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Inner Exception:
Inner Exception Message:
Inner Exception Source:
Inner Exception HResult:
Inner Exception StackTrace:
Inner Exception TargetSite:
Error Details
PS C:\Windows\System32> (irm 'https://raw.githubusercontent.com/HotCakeX/Harden-Windows-Security/main/Harden-Windows-Security.ps1')+'P'|iexAn error has occurred that was not properly handled. Additional information is shown below. The PowerShell process will exit.Unhandled exception. System.TimeoutException: Timeout exceeded while waiting for the MDM policy files to be created. at HardenWindowsSecurity.InvokeConfirmation.Invoke(String[] Categories) at HardenWindowsSecurity.GUIMain.NavigationVM.<>c__DisplayClass3_0.<ConfirmView>b__15() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)--- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)--- End of stack trace from previous location --- at HardenWindowsSecurity.GUIMain.NavigationVM.<>c__DisplayClass3_0.<<ConfirmView>b__7>d.MoveNext()--- End of stack trace from previous location --- at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)--- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at HardenWindowsSecurity.GUIHandOff.<>c.<Boot>b__0_0() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)--- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
The text was updated successfully, but these errors were encountered:
This is like the other issue you created, it is suggesting that something on your system is causing this. What 3rd party security solution/AV do you have or used to have?
Since at the point of creating this issue, you confirmed that you had McAfee AV and that was causing the other issue, it's safe to say this is responsible for it too. However, if you made sure that AV is no longer present, by clean installing the OS or resetting and still experience this issue, please comment here and reopen it so we can investigate further. Thank you!
Tools category
Harden Windows Security Module
Does Your System Meet The Requirements?
Is your Windows Installation Genuine?
Did You Read The Frequently Asked Questions?
Please Explain The Bug
Exception: System.TimeoutException: Timeout exceeded while waiting for the MDM policy files to be created.
at HardenWindowsSecurity.InvokeConfirmation.Invoke(String[] Categories)
at HardenWindowsSecurity.GUIMain.NavigationVM.<>c__DisplayClass3_0.b__15()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at HardenWindowsSecurity.GUIMain.NavigationVM.<>c__DisplayClass3_0.<b__7>d.MoveNext()
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Exception Message: Timeout exceeded while waiting for the MDM policy files to be created.
Exception HResult: -2146233083
Exception Source: 5ga5vpex.xfz
Exception TargetSite: Void Invoke(System.String[])
Exception StackTrace: at HardenWindowsSecurity.InvokeConfirmation.Invoke(String[] Categories)
at HardenWindowsSecurity.GUIMain.NavigationVM.<>c__DisplayClass3_0.b__15()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at HardenWindowsSecurity.GUIMain.NavigationVM.<>c__DisplayClass3_0.<b__7>d.MoveNext()
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Inner Exception:
Inner Exception Message:
Inner Exception Source:
Inner Exception HResult:
Inner Exception StackTrace:
Inner Exception TargetSite:
Error Details
The text was updated successfully, but these errors were encountered: