PowerShell 7 在网络路径上非常慢

发布于 2025-01-09 19:04:33 字数 563 浏览 5 评论 0原文

最近,我按照指南安装了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文