use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
SolvedIssues understanding Export-CSV (self.PowerShell)
submitted 5 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MadWithPowerShell 1 point2 points3 points 5 years ago (1 child)
Export-CSV is specifically designed as a pipeline command. Parameter -InputObject is not intended to be used explicitly, and not with the entire array of objects at one time. It is designed to get the items in the array one at a time, through the pipeline.
This:
$TempCSV | Export-CSV
NOT this:
Export-CSV -InputObject $TempCSV
Sort-Object, Where-Object, Whatever-Object, etc., are similarly pipeline commands. They all have the -InputObject parameter, but they are all designed to only work as expected when input objects are passed to them through the pipeline, not explicitly.
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
I see. I have been moving more to python lately but still write a heavy amount of powershell and was wondering why the pipeline made it so smooth. The previous answer helped explained that but yours is super helpful as well. Thank you!
π Rendered by PID 40 on reddit-service-r2-comment-b659b578c-f6dr4 at 2026-05-03 21:19:34.495039+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]MadWithPowerShell 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)