Skip to content

SmbShare - Add support for SMB Compression (CompressData) #430

Open

Description

@Borgquite

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

Activity

  1. added
    enhancement
    help wanted
    on Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions