Test-NtfsCompression

Tests if NTFS compression is turned on.

Syntax

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

Description

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

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
Path String

The path where compression should be enabled.

true false

EXAMPLE 1

Test-NtfsCompression -Path C:\Projects\Carbon

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