将结果中的省略号内容全部输出

如何将{}之间的内容逐个输出:

Get-Service -Name winmgmt | Select DependentServices | foreach {$_.DependentServices}

-OR-

Get-Service -Name winmgmt | Select -ExpandProperty DependentServices 

 

http://blogs.technet.com/b/heyscriptingguy/archive/2011/11/20/change-a-powershell-preference-variable-to-reveal-hidden-data.aspx

posted @ 2015-05-08 18:20  dongdonggeorge  阅读(542)  评论(0编辑  收藏  举报