powershell - 加入对象需要哪个版本的 PowerShell ISE?

标签 powershell

当我尝试使用 Join-Object它抛出以下错误:

The term 'join-object' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.



我不确定它为什么会抛出这个错误。

我当前的 Windows PowerShell 版本是 3.0。

最佳答案

Join-Object不是任何当前版本的 PowerShell 中的内置 cmdlet,但有几个人编写了它的版本。例如,这是 PSExcel 模块的一部分:

https://www.powershellgallery.com/packages/PSExcel/1.0.2/Content/Join-Object.ps1

您可以将该脚本保存为本地计算机上的 .ps1 文件,然后运行它。之后您将获得 Join-Object该 session 的 cmdlet。或者您可以按照说明安装 PSExcel PowerShell 模块 here因为这个模块包含 Join-Object cmdlet。

PowerShell 可通过模块进行扩展。要了解有关使用模块的更多信息,请参阅 here .

关于powershell - 加入对象需要哪个版本的 PowerShell ISE?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47071514/

相关文章:

powershell - 使用 Out-GridView 的执行顺序 - PowerShell

powershell - 如何修改cspkg中定义的csdef

powershell - 如何在 Powershell 中调用目录路径中包含空格的批处理文件

powershell - 我们如何在终端中处理 Visual Studio Code 中的问题

powershell - 在PowerShell中共享文件夹并设置权限

encoding - 从 powershell 调用时,Iconv 正在转换为 UTF-16 而不是 UTF-8

powershell - 匿名列出公共(public)容器中的 Azure 存储 blob

windows - 无法使用 Powershell 在 Windows 10 上将 Bcrypt.Net-Next 程序集安装到 GAC

powershell - 使用-Path时包含[和(

powershell - Powershell new-psdrive未映射驱动器