Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Borgquite opened this issue Jul 29, 2024 · 0 comments
Open

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

Borgquite opened this issue Jul 29, 2024 · 0 comments
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.

Comments

@Borgquite
Copy link
Contributor

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
@johlju johlju added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

2 participants