The Out-GridView used as the output window

  

Typically, the Out-GridView action is to open a window and displays all transmitted to the content through a conduit cmdlet

Get-Process |Out-GridView 

However, we can transform it into information that can be transmitted by pipeline to the same output window anywhere

Pipeline $ = {} Out-.GetSteppablePipeline the GridView ()      # # GetSteppablePipeline () method is a script block 
$ Pipeline . the Begin ( $ to true ) 

$ Pipeline . Process ( " the Init ... " )
 $ Pipeline . Process ( " Process ... ' )      # # call Process () output any information 
$ pipeline . Process ( " end " ) 

$ pipeline . end ()       # # end of the pipeline

 

Guess you like

Origin www.cnblogs.com/feiyucha/p/11128620.html