Let us take this example where we are using PowerShell 3.0 to display the
processes.
Get-Process Out-GridView -PassThru
The
benefit of the -PassThru parameter comes when
you select rows with the mouse, and then click OK. The result is that
PowerShell refreshes the output.
Take the screenshot to the
right where I have selected just 5 rows, dlhost, LogonUI, lsass,
MsMpEng and SearchIndex. When I pressed '
OK'
, the result was a display
with just those 5 rows.
Result of -PassThru and pressing '
OK'
Guy Recommends: SolarWinds' Free Bulk Import Tool
Import users from a spreadsheet. Just provide a list of the
users with their fields in the
top row, and save as .csv file. Then launch this FREE utility and match
your fields with AD's
attributes, click to import the users. Optionally, you can
provide the name of the OU where the new accounts will be born.
There are also two bonus tools in this free download, and all 3 have been approved by Microsoft: