Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Create Custom PowerShell Objects

$
0
0

Summary: Learn about the easiest way to create a custom Windows PowerShell object.

Hey, Scripting Guy! Question How can I easily create a custom object that contains only a few of the existing properties of a
           Windows PowerShell cmdlet?

Hey, Scripting Guy! Answer Use the Select-Object cmdlet in the pipeline and choose the properties you want to add to the object:

Get-Process | Select-Object name, id


Viewing all articles
Browse latest Browse all 3333

Trending Articles