Get-LogProperties
Windows イベント ログのプロパティを取得します。
構文
Default (既定)
Get-LogProperties
[-Name] <Object>
[<CommonParameters>]
説明
このコマンドレットは、Windows プラットフォームでのみ使用できます。
このコマンドレットは、Windows イベント ログの構成設定を取得します。 このコマンドレットは、Enable-PSTrace および Disable-PSTrace コマンドレットによって使用されます。
例
例 1: Windows PowerShell イベント ログの構成設定を取得する
Get-LogProperties 'Windows PowerShell'
Name : Windows PowerShell
Enabled : True
Type : Admin
Retention : False
AutoBackup : False
MaxLogSize : 15728640
パラメーター
-Name
イベント プロバイダーの名前。
パラメーターのプロパティ
| 型: | Object |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
(All)
| 配置: | 0 |
| 必須: | True |
| パイプラインからの値: | True |
| プロパティ名別のパイプラインからの値: | False |
| 残りの引数からの値: | False |
CommonParameters
このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。
入力
String
ログ プロバイダーの名前を含む文字列をこのコマンドレットにパイプできます。
出力
Microsoft.PowerShell.Diagnostics.LogDetails
このコマンドレットは、LogDetails オブジェクトを返します。
PSDiagnostics モジュールは、LogDetails クラスを Microsoft.PowerShell.Diagnostics 名前空間に追加します。