WindowsEventLog: MaximumSizeInBytes change maximum limit to exceed 4GB
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 55/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- powershell
調査の方向性
WindowsEventLog リソースの MaximumSizeInBytes パラメーターから始め、その ValidateRange 制約を確認します。提供された Invoke-DscResource 構成で受け入れられる範囲を検証し、4GB を超え、要求された上限までの値が検証エラーなしで受け入れられることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Problem description
Currently the MaximumSizeInBytes is limited to a max of 4GB. This should be expanded to 2TB. Cannot find the official documentation about this but there is a recent blog post about it where it mentions that it can be set to 2TB
You can set a maximum log size value of between 1024 and 2,147,483,647 kilobytes in multiples of 64 kilobytes. That's an approximate maximum log file size of 2 TB if you're feeling relaxed about the amount of storage you have. Microsoft’s current recommendation for how to configure this setting is 4GB.
Verbose logs
PowerShell DSC resource DSC_WindowsEventLog failed to execute Set-TargetResource functionality with error message: Cannot validate argument on parameter
'MaximumSizeInBytes'. The 21474836480 argument is greater than the maximum allowed range of 4294967296. Supply an argument that is less than or equal to 4
294967296 and then try the command again
DSC configuration
$InvokeParams = @{
Method = 'Set'
ModuleName = 'ComputerManagementDsc'
Name = 'WindowsEventLog'
Property = @{
LogName = 'System'
IsEnabled = $true
LogMode = 'Circular'
MaximumSizeInBytes = 21474836480
}
}
Invoke-DscResource @InvokeParams
Suggested solution
Change the ValidateRange in the MaximumSizeInBytes parameter from [ValidateRange(64KB, 4GB)] to [ValidateRange(64KB, 2TB)]
Operating system the target node is running
Windows server 2016-2025
PowerShell version and build the target node is running
Name Value
---- -----
PSVersion 5.1.26100.6584
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.6584
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
ComputerManagementDsc version
ComputerManagementDsc 10.0.0 C:\Program Files\WindowsPowerShell\Modules\ComputerManagementDsc\10.0.0\ComputerManagementDsc.psd1
- 主要言語
- PowerShell
- スター
- 338
- フォーク
- 80
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dsccommunity/ComputerManagementDsc のほかの issue
-
chore
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
chore
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
-
chore
難易度 4/5 3〜5日 初心者へのやさしさ 64/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
dsccommunity/ComputerManagementDsc の issue をすべて見る
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
Mintplex-Labs/anything-llm#6490 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
HL7/fhir-ig-publisher#1375 ·
-
[quality] workflow-scripts guard reads test:unit:coverage as skipping the unit suite, blocking #632 オープンagent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100