November 2018
Intermediate to advanced
566 pages
17h 15m
English
Let's discuss how we can create a custom object. To start with, the script requires an input CSV file, and the file contains Server and User columns. Let's get started and create the content of the input CSV file:
PS> nano input.csv
PS> cat ./input.csv Server,userhfd01,ssh-test10.2.6.68,prashant
PS> import-csv ./input.csv|%{ Invoke-Command -HostName $_.Server -UserName $_.user -ScriptBlock { Get-Process |` select-object Handles,CPU, ` ...Read now
Unlock full access