コマンドレットのパラメータを列挙してみる。 - PowerShell Scripting Weblog

2007/07/19

共通パラメータ以外にも共通のパラメータって結構ありますよね。それを列挙してみました。

get-command -type cmdlet|%{$_.parametersets|
%{$_.parameters}}|group name|sort count -des

結果

Count Name                      Group
----- ----                      -----
  206 ErrorAction               {ErrorAction, ErrorAction, ErrorAction, ErrorAction...}
  206 Debug                     {Debug, Debug, Debug, Debug...}
  206 Verbose                   {Verbose, Verbose, Verbose, Verbose...}
  206 OutBuffer                 {OutBuffer, OutBuffer, OutBuffer, OutBuffer...}
  206 OutVariable               {OutVariable, OutVariable, OutVariable, OutVariable...}
  206 ErrorVariable             {ErrorVariable, ErrorVariable, ErrorVariable, ErrorVariable...}
   80 WhatIf                    {WhatIf, WhatIf, WhatIf, WhatIf...}
   80 Confirm                   {Confirm, Confirm, Confirm, Confirm...}
   72 Force                     {Force, Force, Force, Force...}
   71 Exclude                   {Exclude, Exclude, Exclude, Exclude...}
   70 Include                   {Include, Include, Include, Include...}
   61 PassThru                  {PassThru, PassThru, Passthru, PassThru...}
   59 Credential                {Credential, Credential, Credential, Credential...}
   58 Name                      {Name, Name, Name, Name...}
   47 Filter                    {Filter, Filter, Filter, Filter...}
   46 Path                      {Path, Path, Path, Path...}
   42 InputObject               {InputObject, InputObject, InputObject, InputObject...}
   31 LiteralPath               {LiteralPath, LiteralPath, LiteralPath, LiteralPath...}
   17 Value                     {Value, Value, Value, Value...}
   15 Scope                     {Scope, Scope, Scope, Scope...}
   12 Property                  {Property, Property, Property, Property...}
    9 Encoding                  {Encoding, Encoding, Encoding, Encoding...}
    8 Destination               {Destination, Destination, Destination, Destination...}
    8 FilePath                  {FilePath, FilePath, FilePath, FilePath...}
    8 Description               {Description, Description, Description, Description...}
    8 DisplayName               {DisplayName, DisplayName, DisplayName, DisplayName...}
    7 PSProvider                {PSProvider, PSProvider, PSProvider, PSProvider...}
    7 Option                    {Option, Option, Option, Option...}
    6 Recurse                   {Recurse, Recurse, Recurse, Recurse...}
    6 NoClobber                 {NoClobber, NoClobber, NoClobber, NoClobber...}
    6 Category                  {Category, Category, Category, Category...}
    6 Resolve                   {Resolve, Resolve, Resolve, Resolve...}
    5 Message                   {Message, Message, Message, Message...}
    5 CaseSensitive             {CaseSensitive, CaseSensitive, CaseSensitive, CaseSensitive...}
    5 StackName                 {StackName, StackName, StackName, StackName...}
    5 Id                        {Id, Id, Id, Id...}
(5未満は略)

あれなんで200以上あるのかな、まあいいや細かいことは気にしない。31 LiteralPathくらいまでが重要そうです。

元記事:http://blogs.wankuma.com/mutaguchi/archive/2007/07/19/86015.aspx

トラックバック

トラックバックはまだありません

トラックバックPing:


コメント

コメントはまだありません


コメントをどうぞ

名前 (省略可) :
E-mail or URL (省略可) :


前の記事へ | 次の記事へ

Copyright © 2005-2016 Daisuke Mutaguchi All rights reserved

mailto: mutaguchi at roy.hi-ho.ne.jp

Awards

Books

Twitter