试图打开Windows Powershell。访问内存受限制

时间:2016-05-01 20:42:40

标签: windows powershell

我最近将我的电脑升级到了Windows 10,而且大部分内容似乎都运行良好。 Powershell工作正常,直到我打开一个shell并出现此错误

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Management.Automation.LocationGlobber.GetProviderPath(String path, CmdletProviderContext context)
   at System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(String path, CmdletProviderContext context, Boolean allowNonexistingPaths, CmdletProvider& providerInstance)
   at System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(String path, Boolean allowNonexistingPaths, CmdletProviderContext context, CmdletProvider& providerInstance)
   at System.Management.Automation.SessionStateInternal.SetLocation(String path, CmdletProviderContext context)
   at System.Management.Automation.Runspaces.InitialSessionState.SetSessionStateDrive(ExecutionContext context, Boolean setLocation)
   at System.Management.Automation.AutomationEngine..ctor(PSHost hostInterface, RunspaceConfiguration runspaceConfiguration, InitialSessionState iss)
   at System.Management.Automation.Runspaces.LocalRunspace.DoOpenHelper()
   at System.Management.Automation.Runspaces.RunspaceBase.CoreOpen(Boolean syncCall)
   at Microsoft.PowerShell.ConsoleHost.OpenConsoleRunspace(Runspace runspace, Boolean staMode)
   at Microsoft.PowerShell.ConsoleHost.DoCreateRunspace(String initialCommand, Boolean skipProfiles, Boolean staMode, Boolean importSystemModules, Collection`1 initialCommandArgs)
   at Microsoft.PowerShell.ConsoleHost.CreateRunspace(Object runspaceCreationArgs)
   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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

导致提示显示" Windows PowerShell已停止工作"弹出。我尝试以管理员身份运行shell并重新启动计算机,等待RAM中的内存衰减。是否有一个简单的解决方法,例如重新安装框架,或者我是否需要为我的机器购买新的RAM芯片?

机器规格:

  • 联想瑜伽13(第一代)
  • 8GB RAM(最初附带4个,我升级了)
  • 104 GB存储
  • 英特尔酷睿i5-3337U @ 1.80 GHz
  • 64位

更新 转到文件位置,我能够毫无问题地打开PowerShell(x86)。我可以执行命令,但如果可能的话,我更愿意解决常规的PowerShell。

0 个答案:

没有答案