-
Notifications
You must be signed in to change notification settings - Fork 32
Function Volume
Mark Wragg edited this page Jun 17, 2019
·
1 revision
Test the specified setting of a volume.
Uses the Get-Volume cmdlet to validate the specified setting of a volume by either DriverLetter or FileSystemLabel property.
Specifies the drive letter or file system label of the volume to test.
[Parameter(Mandatory, Position=1,ParameterSetName="Default")]
[Parameter(Mandatory, Position=1,ParameterSetName="Property")]
[Alias('Name')]Specifies an optional property to test for on the volume.
[Parameter(Position=2,ParameterSetName="Property")]
[ValidateSet(
'AllocationUnitSize',
'DedupMode',
'DriveLetter',
'DriveType',
'FileSystem',
'FileSystemLabel',
'FileSystemType',
'HealthStatus',
'ObjectId',
'OperationalStatus',
'Path',
'Size',
'SizeRemaining'
)]A Script Block defining a Pester Assertion.
[Parameter(Mandatory, Position=2)]Assertions: -Be
Volume C HealthStatus { Should -Be 'Healthy' }Volume C FileSystem { Should -Be 'NTFS' }Volume D AllocationUnitSize { Should -Be 64K }Volume MyFileSystemLabel SizeRemaining { Should -BeGreaterThan 1GB }Getting Started
Contributing
Functions