Erro Powershell não manipulado no lançamento

0

Eu comecei aleatoriamente a receber uma exceção não tratada ao tentar iniciar o x64 do powershell esta noite. Estava funcionando bem antes de colocar meu computador para dormir algumas horas atrás.

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.SEHException: External component has thrown an exception.
  at System.Runtime.CompilerServices.RuntimeHelpers.PrepareContractedDelegate(Delegate d)
  at System.AppDomain.add_UnhandledException(UnhandledExceptionEventHandler value)
  at System.Management.Automation.WindowsErrorReporting.RegisterWindowsErrorReporting(Boolean unattendedServer)
  at Microsoft.PowerShell.UnmanagedPSEntry.Start(String consoleFilePath, String[] args)
  --- End of inner exception stack trace ---
  at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
  at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
  at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Management.Automation.Utils' threw an exception. ---> System.Runtime.InteropServices.SEHException: External component has thrown an exception.
  at System.Management.Automation.Utils..cctor()
  --- End of inner exception stack trace ---
  at System.Management.Automation.Runspaces.EarlyStartup.<>c.<Init>b__0_0()
  at System.Threading.Tasks.Task.Execute()
  at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
  at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
  at System.Threading.ThreadPoolWorkQueue.Dispatch()

Eu executei um sfc / scannow que não encontrou nenhum problema. Os problemas persistem após várias reinicializações. Eu tentei criar um novo usuário do Windows, no entanto, os problemas persistem no novo usuário também.

Alguma idéia do que pode estar causando isso ou como eu poderia fazer um reparo?

    
por Ross Jones 22.05.2017 / 23:13

1 resposta

0

Eu desinstalei o windows update KB4016871 e tudo começou a funcionar novamente.

    
por 23.05.2017 / 18:08