ComputerManagementDsc
ComputerManagementDsc copied to clipboard
SmbShare - Add support for SMB Compression (CompressData)
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