Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在离线计算机上安装 PSReadline 模块
使用 Windows 7 SP1 和 powershell 5.1
我有另一台连接到互联网的计算机。
您能否解释一下如何下载相关文件以及如何在离线计算机上安装它们?
如果您将其下载到在线计算机,该模块将位于您的模块路径之一中 - 键入:
$env:PSModulePath
...这将列出所有可能的路径,只需搜索正确的文件夹并将其复制到其模块路径之一中的离线计算机。如果有任何依赖项,也需要复制这些依赖项。