PowerShell 7 在网络路径上非常慢
最近,我按照指南安装了 PowerShell 7 作为 ZIP 包 在 Windows 上安装 PowerShell。
(我被迫将其安装为 ZIP 文件,因为我在工作计算机上没有管理员权限 :(
。)
将其与我已有的 PowerShell 版本 (5.1.19041.1320) 进行比较, 访问网络 (UNC) 路径时,新版本的 PowerShell (7.2.1) 速度非常慢。
当我在 HOMESHARE
中 网络目录,我这样做:
Measure-Command { cd . }
使用 PS7,我得到 4.2 秒,使用 PS5,我得到 0.82 秒,知道为什么会出现这种情况吗?
Recently I have installed PowerShell 7 as a ZIP package following the guide Installing PowerShell on Windows.
(I am forced to install it as a ZIP file because I don't have admin rights on my work computer :(
.)
Comparing it to the version of PowerShell I already have (5.1.19041.1320), the new version of PowerShell (7.2.1) is incredibly slow when accessing network (UNC) paths.
I am loading both -noprofile
. While I am in my HOMESHARE
network directory, I do:
Measure-Command { cd . }
With PS7, I get 4.2 seconds, with PS5 I get 0.82 seconds. Any idea why this might be the case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论