Framework 版本: v4.0.30319
说明: 由于未经处理的异常,进程终止。
异常信息: System.Runtime.InteropServices.SEHException
在 System.Linq.Enumerable.OfTypeIterator[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.IEnumerable)
在 System.Management.Automation.PSMemberInfoInternalCollection`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetEnumerator()
在 System.Management.Automation.PSMemberSet..ctor(System.String, System.Collections.Generic.IEnumerable`1<System.Management.Automation.PSMemberInfo>)
在 System.Management.Automation.Runspaces.TypeTable.ProcessStandardMembers(System.Collections.Concurrent.ConcurrentBag`1<System.String>, System.String, System.Collections.Generic.IEnumerable`1<System.Management.Automation.Runspaces.TypeMemberData>, System.Collections.Generic.IEnumerable`1<System.Management.Automation.Runspaces.PropertySetData>, System.Management.Automation.PSMemberInfoInternalCollection`1<System.Management.Automation.PSMemberInfo>, Boolean)
在 System.Management.Automation.Runspaces.TypeTable.ProcessTypeDataToAdd(System.Collections.Concurrent.ConcurrentBag`1<System.String>, System.Management.Automation.Runspaces.TypeData)
在 System.Management.Automation.Runspaces.TypeTable.ProcessTypeData(System.String, System.Collections.Concurrent.ConcurrentBag`1<System.String>, System.Collections.Generic.IEnumerable`1<System.Management.Automation.Runspaces.TypeData>)
在 System.Management.Automation.Runspaces.TypeTable.ProcessIsBuiltIn(System.String, System.Collections.Concurrent.ConcurrentBag`1<System.String>, Boolean ByRef)
在 System.Management.Automation.Runspaces.TypeTable.Update(System.String, System.String, System.Collections.Concurrent.ConcurrentBag`1<System.String>, System.Management.Automation.AuthorizationManager, System.Management.Automation.Host.PSHost, Boolean ByRef)
在 System.Management.Automation.Runspaces.InitialSessionState+<>c__DisplayClass168_0.<UpdateTypes>b__0(System.Management.Automation.Runspaces.SessionStateTypeEntry)
在 System.Threading.Tasks.Parallel+<>c__DisplayClass42_0`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<PartitionerForEachWorker>b__1()
在 System.Threading.Tasks.Task.InnerInvokeWithArg(System.Threading.Tasks.Task)
在 System.Threading.Tasks.Task+<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(System.Object)
在 System.Threading.Tasks.Task.Execute()
在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean)
在 System.Threading.ThreadPoolWorkQueue.Dispatch()

由于下列某个原因,Windows 无法访问文件 C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Transactions\081821246f92b34793504b1663c52284\System.Transactions.ni.dll: 网络连接、存储文件的磁盘或安装在此计算机上的存储 驱动程序有问题;或者磁盘丢失。 由于上述错误,Windows 关闭了程序 Windows PowerShell。

程序: Windows PowerShell

文件: C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Transactions\081821246f92b34793504b1663c52284\System.Transactions.ni.dll

该错误值列于“其他数据”部分。

1. 再次打开文件。 这种情况可能是一个临时问题,程序再次运行时可能会自行更正。

2. 如果仍然无法访问该文件,并且

- 如果该文件位于网络上, 网络管理员应该验证网络是否存在问题并且验证是否可以与服务器联系。

- 如果该文件位于可移动磁盘上(例如软盘或 CD-ROM),请验证磁盘已完全插入计算机。

3. 通过运行 CHKDSK 检查并修复文件系统。若要运行 CHKDSK,请单击「开始」,单击“运行”,键入“CMD”,然后单击“确定”。在命令提示符处,键入 CHKDSK /F,然后按 Enter。

4. 如果问题仍然存在,请从备份副本中还原文件。

5. 确定是否可以打开同一磁盘上的其他文件。如果无法打开,则磁盘可能损坏。如果磁盘是硬盘,请与管理员或计算机硬件供应商联系, 获得进一步帮助。

错误值: C0000242

磁盘类型: 3

我安装了一个powershell7 就没出现这个问题,,

如果您是专业版或家庭 ( 中文 ) 版正式版 ( 非预览版 ) 系统,建议您可以尝试下覆盖修复系统,覆盖修复不会影响您的个人文件和应用;

https://www.microsoft.com/zh-cn/software-download/windows10

点击上方的链接,点击立即下载工具,运行,接受,为另外一台电脑制作安装介质,下一步,选择语言,系统版本,操作位数,下一步,制作 iso 文件,选择镜像保存位置,等待 win10 镜像制作完成。您的镜像下载后,会生成一个名为 windows 的光盘映像文件,右键,装载(或者右键,打开方式,文件资源管理器),找到 setup 这个程序,双击安装,接受许可协议,更改 windows 安装程序,不是现在,下一步,等待检测,最后会出现安装的界面,保留个人文件和应用,点击安装就可以了。

希望可以帮助到您。