当我尝试使用 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/