Finding Standard Parameter Names

by Dec 19, 2011

In a previous tip, we suggested you to use standard parameter names for your own functions. To get a feeling for what the parameter names are that built-in cmdlets use, here is some code that creates a list of them:

PS> Get-Command -CommandType Cmdlet | Select-Object -ExpandProperty Parameters |  ForEach-Object { $_.Keys } | Group-Object -NoElement | Sort-Object Count, Name -Descending
(...)
   68 Force
   67 Name
   54 InputObject
   54 Credential
   52 Path
   44 PassThru
(...)

Twitter This Tip!
ReTweet this Tip!