Out-Host -Paging error “该方法或操作未实现."(伊势) [英] Out-Host -Paging error "The method or operation is not implemented. " (ISE)
问题描述
我执行这个 Powershell 命令:
I execute this Powershell command:
Get-Process | Out-Host -Paging
但它返回给我错误:
ut-lineoutput : 方法或操作未实现.在行:1 字符:1+ 获取流程 |外主机寻呼+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (:) [out-lineoutput], NotImplementedException+ FullQualifiedErrorId : System.NotImplementedException,Microsoft.PowerShell.Commands.OutLineOutputCommand
ut-lineoutput : The method or operation is not implemented. At line:1 char:1 + Get-Process | Out-Host -Paging + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [out-lineoutput], NotImplementedException + FullyQualifiedErrorId : System.NotImplementedException,Microsoft.PowerShell.Commands.OutLineOutputCommand
我已经检查了 Out-host 的帮助,通过分页,它应该逐页返回结果.
I have checked help for Out-host and with paging it should be returnig results page by page.
基本上我想逐页查看结果,而不是每页都刷新.请帮忙
Basically I want to see results page by page not everythign flush. Please help
推荐答案
-Paging
标志不适用于 powershell_ise.exe
.
使用powershell.exe
另一种选择,尽管它可能不是您所需要的...
Another option though it may not be exactly what you need...
$file="c:\temp\out.txt"
dir -Recurse | Out-File $file
notepad $file
这篇关于Out-Host -Paging error “该方法或操作未实现."(伊势)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!