Asterisk - アスタリスク -

説明するほどでもないブログ

【PowerShell】 プロパティとメソッドの表示。

どうも。

Windows PowerShell の学習メモです。

# プロパティとメソッドの表示
$MyInvocation | Get-Member

# プロパティのみ表示
$MyInvocation.MyCommand | Get-Member -membertype properties

# メソッドのみ表示
$MyInvocation.MyCommand | Get-Member -membertype method

※ $MyInvocation ・・・ シェル変数とか言うものらしい。


以上です。