< Back

Test-CNtfsCompression

Sun Jan 12, 2020 11:25 pm

NAME Test-CNtfsCompression



SYNOPSIS

Tests if NTFS compression is turned on.





SYNTAX

Test-CNtfsCompression [-Path] <String> [<CommonParameters>]





DESCRIPTION

Returns `$true` if compression is enabled, `$false` otherwise.





PARAMETERS

-Path <String>

The path where compression should be enabled.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Test-CNtfsCompression -Path C:\\Projects\\Carbon



Returns `$true` if NTFS compression is enabled on `C:\\Projects\\CArbon`. If it is disabled, returns `$false`.











RELATED LINKS

Disable-CNtfsCompression

Enable-CNtfsCompression