Powershell Tutorial
Introduction to Powershell Managing History of Powershell Commands Cmdlet, Alias, Function and Module in Powershell PSDrive Profile in Windows Powershell Variable Management in Powershell Passing values to parameters from file Creating files and directories Basic File System commands Finding the patterns in files Unique command Replacing patterns in files Comparing objects Sorting objects Other object commands Getting members of an Object Managing processes Managing Jobs IO redirection Piping System Commands Network commands Service Commands WMI(Windows Management Instrumentation) CIM (Common Information Model) Formatting output exporting output XML processing Powershell Module Management Remote computer managementInput output redirection in windows powershell
Input output redirection allows you to redirect the output of Cmdlet to file or any other valid storage device.- Out-Null : This command sends output to null device. It is same as /dev/null in Linux.
- Out-File : This command sends output to the file.
- Out-Printer : This command sends output to a printer.
- Out-GridView : This command sends output in GUI window.
- Out-String : This command sends output as a string to host.
- Out-Default :
- Out-Host:

Output Redirection
For example – If you execute command “Get-Process”, output is displayed on the screen. But if you want to store that information in a file, you can redirect the output to file using below command.
Get-Process > ProcessList.txt
Input Redirection
Similarly we can redirect input as well. Instead of reading input from standard input stream (Keyboard), we can read from file stream or any other valid stream.Web development and Automation testing
solutions delivered!!