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 managementPassing values in windows powershell
Suppose you want to see the processes with name – chrome and explorer. You can use below command for that. Get-Process -name chrome, explorer Sometimes it is not practical to pass all values from the command line. In such scenarios, we can pass values to the parameters from file using below syntax. Get-Process -name (Get-Content myfile.txt) Note that “myfile.txt” should contains the parameter values (names of processes) separated by new line character.Web development and Automation testing
solutions delivered!!