SmbShare - Add support for SMB Compression (CompressData)

未關閉
#430 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
powershell

研究方向

從 SmbShare 資源開始,閱讀 Set-SmbShare 文件中關於 CompressData 參數的內容。確認該資源目前如何管理共用設定,然後驗證是否可以透過 DSC 控制 CompressData,以及最終的共用設定是否與要求的值相符。

由索引模型根據 Issue 內容生成。

描述

enhancement help wanted
Problem description

Windows Server 2022 supports enabling compression on SMB shares (https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-compression?tabs=powershell%2Crobocopy%2Cgroup-policy)

This needs to be enabled on SMB shares and would be helpful to control via the SmbShare module.

Verbose logs
N/A
DSC configuration
Configuration SmbShare_CreateShare_Config
{
    Import-DscResource -ModuleName ComputerManagementDsc

    Node localhost
    {
        SmbShare 'TempShare'
        {
            Name = 'Temp'
            Path = 'C:\Temp'
            CompressData = $true
        }
    }
}
Suggested solution

This is set via a new parameter in Set-SmbShare. It would be helpful if this could be enabled in DSC
https://learn.microsoft.com/en-us/powershell/module/smbshare/set-smbshare?view=windowsserver2022-ps

Operating system the target node is running
N/A
PowerShell version and build the target node is running
N/A
ComputerManagementDsc version
N/A
主要語言
PowerShell
星號
339
分支
80
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

dsccommunity/ComputerManagementDsc 的其他 Issue

查看 dsccommunity/ComputerManagementDsc 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。