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 managementExporting the output in windows powershell
We have below commands to export the output in various formats.- ConvertTo-Html : This command converts the output to HTML file format.
- Export-CSV : This command converts the output to CSV file format
- Import-CSV : This command imports the objects stored in CSV file
- ConvertTo-CSV : This command converts objects in to CSV strings
- ConvertFrom-CSV : This command converts CSV strings into Objects.
> Get-Process | Export-csv abc.csv
You can export the output in XML file using below syntax.
> Get-Process | Export-clixml abc.xml
To convert the output in HTML, you can use below command.
> dir | ConvertTo-HTML | Out-File abc.html
Web development and Automation testing
solutions delivered!!