Microsoft PowerShell Exception

Last Modified

Mon Nov 30 22:28 GMT 2020

Description

  • Unable to run automation policy on a device.

Exception: Could not load file or assembly 'Microsoft.PowerShell.Commands.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Exception: Could not load file or assembly 'Microsoft.PowerShell.Commands.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at PolicyExecutionEngine.ResultsHandlerBase.TypedOutputInternal(String strScriptName, Object o)
at NCentralAutomation.ResultsHandlerImpl.OutputObjectResults(IScriptElement se)
at PolicyExecutor.ScriptActivity.OutputObjectResults(List`1 lArgs)
at PolicyExecutor.IfObject.Execute(NativeActivityContext context)
at System.Activities.NativeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Error: Could not load file or assembly 'Microsoft.PowerShell.Commands.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Environment

  • N-able N-central
  • Microsoft Windows Server 2012 Standard