0byt3m1n1
Path:
C:
/
Windows
/
System32
/
WindowsPowerShell
/
v1.0
/
Modules
/
Deduplication
/
[
Home
]
File: Deduplication.format.ps1xml
<Configuration> <SelectionSets> <SelectionSet> <Name>DedupVolumeTypes</Name> <Types> <TypeName>Microsoft.Management.Infrastructure.CimInstance#MSFT_DedupVolume</TypeName> </Types> </SelectionSet> <SelectionSet> <Name>DedupScheduleTypes</Name> <Types> <TypeName>Microsoft.Management.Infrastructure.CimInstance#MSFT_DedupJobSchedule</TypeName> </Types> </SelectionSet> <SelectionSet> <Name>DedupJobTypes</Name> <Types> <TypeName>Microsoft.Management.Infrastructure.CimInstance#MSFT_DedupJob</TypeName> </Types> </SelectionSet> <SelectionSet> <Name>DedupStatusTypes</Name> <Types> <TypeName>Microsoft.Management.Infrastructure.CimInstance#MSFT_DedupVolumeStatus</TypeName> </Types> </SelectionSet> <SelectionSet> <Name>DedupMetadataTypes</Name> <Types> <TypeName>Microsoft.Management.Infrastructure.CimInstance#MSFT_DedupVolumeMetadata</TypeName> </Types> </SelectionSet> <SelectionSet> <Name>DedupFileMetadataTypes</Name> <Types> <TypeName>Microsoft.Management.Infrastructure.CimInstance#MSFT_DedupFileMetadata</TypeName> </Types> </SelectionSet> </SelectionSets> <ViewDefinitions> <View> <Name>DedupVolumeTableView</Name> <ViewSelectedBy> <SelectionSetName>DedupVolumeTypes</SelectionSetName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>Enabled</Label> <Width>18</Width> </TableColumnHeader> <TableColumnHeader> <Label>UsageType</Label> <Width>18</Width> </TableColumnHeader> <TableColumnHeader> <Label>SavedSpace</Label> <Width>20</Width> </TableColumnHeader> <TableColumnHeader> <Label>SavingsRate</Label> <Width>20</Width> </TableColumnHeader> <TableColumnHeader> <Label>Volume</Label> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>Enabled</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>UsageType</PropertyName> </TableColumnItem> <TableColumnItem> <ScriptBlock> $size = $_.SavedSpace; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock> return "" + $_.SavingsRate + " %"; </ScriptBlock> </TableColumnItem> <TableColumnItem> <PropertyName>Volume</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <Name>DedupVolumeListView</Name> <ViewSelectedBy> <SelectionSetName>DedupVolumeTypes</SelectionSetName> </ViewSelectedBy> <ListControl> <ListEntries> <ListEntry> <ListItems> <ListItem> <PropertyName>Volume</PropertyName> </ListItem> <ListItem> <PropertyName>VolumeId</PropertyName> </ListItem> <ListItem> <PropertyName>Enabled</PropertyName> </ListItem> <ListItem> <PropertyName>UsageType</PropertyName> </ListItem> <ListItem> <PropertyName>DataAccessEnabled</PropertyName> </ListItem> <ListItem> <Label>Capacity</Label> <ScriptBlock> $size = $_.Capacity; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>FreeSpace</Label> <ScriptBlock> $size = $_.FreeSpace; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>UsedSpace</Label> <ScriptBlock> $size = $_.UsedSpace; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>UnoptimizedSize</Label> <ScriptBlock> $size = $_.UnoptimizedSize; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>SavedSpace</Label> <ScriptBlock> $size = $_.SavedSpace; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>SavingsRate</Label> <ScriptBlock> return "" + $_.SavingsRate + " %"; </ScriptBlock> </ListItem> <ListItem> <PropertyName>MinimumFileAgeDays</PropertyName> </ListItem> <ListItem> <PropertyName>MinimumFileSize</PropertyName> </ListItem> <ListItem> <PropertyName>NoCompress</PropertyName> </ListItem> <ListItem> <PropertyName>ExcludeFolder</PropertyName> </ListItem> <ListItem> <PropertyName>ExcludeFileType</PropertyName> </ListItem> <ListItem> <PropertyName>ExcludeFileTypeDefault</PropertyName> </ListItem> <ListItem> <PropertyName>NoCompressionFileType</PropertyName> </ListItem> <ListItem> <PropertyName>ChunkRedundancyThreshold</PropertyName> </ListItem> <ListItem> <PropertyName>Verify</PropertyName> </ListItem> <ListItem> <PropertyName>OptimizeInUseFiles</PropertyName> </ListItem> <ListItem> <PropertyName>OptimizePartialFiles</PropertyName> </ListItem> </ListItems> </ListEntry> </ListEntries> </ListControl> </View> <View> <Name>DedupScheduleTableView</Name> <ViewSelectedBy> <SelectionSetName>DedupScheduleTypes</SelectionSetName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>Enabled</Label> <Width>10</Width> </TableColumnHeader> <TableColumnHeader> <Label>Type</Label> <Width>18</Width> </TableColumnHeader> <TableColumnHeader> <Label>StartTime</Label> <Width>22</Width> </TableColumnHeader> <TableColumnHeader> <Label>Days</Label> <Width>18</Width> </TableColumnHeader> <TableColumnHeader> <Label>Name</Label> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>Enabled</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Type</PropertyName> </TableColumnItem> <TableColumnItem> <ScriptBlock> $dt = $_.Start; return $_.Start.ToShortTimeString(); </ScriptBlock> </TableColumnItem> <TableColumnItem> <PropertyName>Days</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Name</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <Name>DedupScheduleListView</Name> <ViewSelectedBy> <SelectionSetName>DedupScheduleTypes</SelectionSetName> </ViewSelectedBy> <ListControl> <ListEntries> <ListEntry> <ListItems> <ListItem> <PropertyName>Name</PropertyName> </ListItem> <ListItem> <PropertyName>Enabled</PropertyName> </ListItem> <ListItem> <PropertyName>Type</PropertyName> </ListItem> <ListItem> <PropertyName>Days</PropertyName> </ListItem> <ListItem> <PropertyName>Start</PropertyName> </ListItem> <ListItem> <PropertyName>DurationHours</PropertyName> </ListItem> <ListItem> <PropertyName>StopWhenSystemBusy</PropertyName> </ListItem> <ListItem> <Label>Memory</Label> <ScriptBlock> return "" + $_.Memory + " %"; </ScriptBlock> </ListItem> <ListItem> <PropertyName>Priority</PropertyName> </ListItem> <ListItem> <PropertyName>InputOutputThrottleLevel</PropertyName> </ListItem> <ListItem> <PropertyName>ScheduledTask</PropertyName> </ListItem> <ListItem> <PropertyName>Full</PropertyName> </ListItem> <ListItem> <PropertyName>ReadOnly</PropertyName> </ListItem> </ListItems> </ListEntry> </ListEntries> </ListControl> </View> <View> <Name>DedupJobTableView</Name> <ViewSelectedBy> <SelectionSetName>DedupJobTypes</SelectionSetName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>Type</Label> <Width>18</Width> </TableColumnHeader> <TableColumnHeader> <Label>ScheduleType</Label> <Width>18</Width> </TableColumnHeader> <TableColumnHeader> <Label>StartTime</Label> <Width>22</Width> </TableColumnHeader> <TableColumnHeader> <Label>Progress</Label> <Width>10</Width> </TableColumnHeader> <TableColumnHeader> <Label>State</Label> <Width>22</Width> </TableColumnHeader> <TableColumnHeader> <Label>Volume</Label> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>Type</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>ScheduleType</PropertyName> </TableColumnItem> <TableColumnItem> <ScriptBlock> if ($_.StartTime -eq $null) { return ""; } return $_.StartTime.ToShortTimeString(); </ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock> return "" + $_.Progress + " %"; </ScriptBlock> </TableColumnItem> <TableColumnItem> <PropertyName>State</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Volume</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <Name>DedupJobListView</Name> <ViewSelectedBy> <SelectionSetName>DedupJobTypes</SelectionSetName> </ViewSelectedBy> <ListControl> <ListEntries> <ListEntry> <ListItems> <ListItem> <PropertyName>Volume</PropertyName> </ListItem> <ListItem> <PropertyName>VolumeId</PropertyName> </ListItem> <ListItem> <PropertyName>Type</PropertyName> </ListItem> <ListItem> <PropertyName>ScheduleType</PropertyName> </ListItem> <ListItem> <PropertyName>StartTime</PropertyName> </ListItem> <ListItem> <Label>Progress</Label> <ScriptBlock> return "" + $_.Progress + " %"; </ScriptBlock> </ListItem> <ListItem> <PropertyName>State</PropertyName> </ListItem> <ListItem> <PropertyName>Id</PropertyName> </ListItem> <ListItem> <PropertyName>StopWhenSystemBusy</PropertyName> </ListItem> <ListItem> <Label>Memory</Label> <ScriptBlock> return "" + $_.Memory + " %"; </ScriptBlock> </ListItem> <ListItem> <PropertyName>Priority</PropertyName> </ListItem> <ListItem> <PropertyName>InputOutputThrottleLevel</PropertyName> </ListItem> <ListItem> <PropertyName>ProcessId</PropertyName> </ListItem> <ListItem> <PropertyName>Full</PropertyName> </ListItem> <ListItem> <PropertyName>ReadOnly</PropertyName> </ListItem> </ListItems> </ListEntry> </ListEntries> </ListControl> </View> <View> <Name>DedupStatusTableView</Name> <ViewSelectedBy> <SelectionSetName>DedupStatusTypes</SelectionSetName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Label>FreeSpace</Label> <Width>12</Width> </TableColumnHeader> <TableColumnHeader> <Label>SavedSpace</Label> <Width>12</Width> </TableColumnHeader> <TableColumnHeader> <Label>OptimizedFiles</Label> <Width>18</Width> </TableColumnHeader> <TableColumnHeader> <Label>InPolicyFiles</Label> <Width>18</Width> </TableColumnHeader> <TableColumnHeader> <Label>Volume</Label> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <ScriptBlock> $size = $_.FreeSpace; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </TableColumnItem> <TableColumnItem> <ScriptBlock> $size = $_.SavedSpace; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </TableColumnItem> <TableColumnItem> <PropertyName>OptimizedFilesCount</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>InPolicyFilesCount</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Volume</PropertyName> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> <View> <Name>DedupStatusListView</Name> <ViewSelectedBy> <SelectionSetName>DedupStatusTypes</SelectionSetName> </ViewSelectedBy> <ListControl> <ListEntries> <ListEntry> <ListItems> <ListItem> <PropertyName>Volume</PropertyName> </ListItem> <ListItem> <PropertyName>VolumeId</PropertyName> </ListItem> <ListItem> <Label>Capacity</Label> <ScriptBlock> $size = $_.Capacity; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>FreeSpace</Label> <ScriptBlock> $size = $_.FreeSpace; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>UsedSpace</Label> <ScriptBlock> $size = $_.UsedSpace; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>UnoptimizedSize</Label> <ScriptBlock> $size = $_.UnoptimizedSize; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>SavedSpace</Label> <ScriptBlock> $size = $_.SavedSpace; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>SavingsRate</Label> <ScriptBlock> return "" + $_.SavingsRate + " %"; </ScriptBlock> </ListItem> <ListItem> <PropertyName>OptimizedFilesCount</PropertyName> </ListItem> <ListItem> <Label>OptimizedFilesSize</Label> <ScriptBlock> $size = $_.OptimizedFilesSize; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>OptimizedFilesSavingsRate</Label> <ScriptBlock> return "" + $_.OptimizedFilesSavingsRate + " %"; </ScriptBlock> </ListItem> <ListItem> <PropertyName>InPolicyFilesCount</PropertyName> </ListItem> <ListItem> <Label>InPolicyFilesSize</Label> <ScriptBlock> $size = $_.InPolicyFilesSize; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <PropertyName>LastOptimizationTime</PropertyName> </ListItem> <ListItem> <Label>LastOptimizationResult</Label> <ScriptBlock> return "0x" + $_.LastOptimizationResult.ToString("X8"); </ScriptBlock> </ListItem> <ListItem> <PropertyName>LastOptimizationResultMessage</PropertyName> </ListItem> <ListItem> <PropertyName>LastGarbageCollectionTime</PropertyName> </ListItem> <ListItem> <Label>LastGarbageCollectionResult</Label> <ScriptBlock> return "0x" + $_.LastGarbageCollectionResult.ToString("X8"); </ScriptBlock> </ListItem> <ListItem> <PropertyName>LastGarbageCollectionResultMessage</PropertyName> </ListItem> <ListItem> <PropertyName>LastScrubbingTime</PropertyName> </ListItem> <ListItem> <Label>LastScrubbingResult</Label> <ScriptBlock> return "0x" + $_.LastScrubbingResult.ToString("X8"); </ScriptBlock> </ListItem> <ListItem> <PropertyName>LastScrubbingResultMessage</PropertyName> </ListItem> </ListItems> </ListEntry> </ListEntries> </ListControl> </View> <View> <Name>DedupMetadataListView</Name> <ViewSelectedBy> <SelectionSetName>DedupMetadataTypes</SelectionSetName> </ViewSelectedBy> <ListControl> <ListEntries> <ListEntry> <ListItems> <ListItem> <PropertyName>Volume</PropertyName> </ListItem> <ListItem> <PropertyName>VolumeId</PropertyName> </ListItem> <ListItem> <PropertyName>StoreId</PropertyName> </ListItem> <ListItem> <PropertyName>DataChunkCount</PropertyName> </ListItem> <ListItem> <PropertyName>DataContainerCount</PropertyName> </ListItem> <ListItem> <Label>DataChunkAverageSize</Label> <ScriptBlock> $size = $_.DataChunkAverageSize; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>DataChunkMedianSize</Label> <ScriptBlock> $size = $_.DataChunkMedianSize; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>DataStoreUncompactedFreespace</Label> <ScriptBlock> $size = $_.DataStoreUncompactedFreespace; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <PropertyName>StreamMapChunkCount</PropertyName> </ListItem> <ListItem> <PropertyName>StreamMapContainerCount</PropertyName> </ListItem> <ListItem> <PropertyName>StreamMapAverageDataChunkCount</PropertyName> </ListItem> <ListItem> <PropertyName>StreamMapMedianDataChunkCount</PropertyName> </ListItem> <ListItem> <PropertyName>StreamMapMaxDataChunkCount</PropertyName> </ListItem> <ListItem> <PropertyName>HotspotChunkCount</PropertyName> </ListItem> <ListItem> <PropertyName>HotspotContainerCount</PropertyName> </ListItem> <ListItem> <PropertyName>HotspotMedianReferenceCount</PropertyName> </ListItem> <ListItem> <PropertyName>CorruptionLogEntryCount</PropertyName> </ListItem> <ListItem> <Label>TotalChunkStoreSize</Label> <ScriptBlock> $size = $_.TotalChunkStoreSize; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> </ListItems> </ListEntry> </ListEntries> </ListControl> </View> <View> <Name>DedupFileMetadataListView</Name> <ViewSelectedBy> <SelectionSetName>DedupFileMetadataTypes</SelectionSetName> </ViewSelectedBy> <ListControl> <ListEntries> <ListEntry> <ListItems> <ListItem> <PropertyName>Path</PropertyName> </ListItem> <ListItem> <PropertyName>Volume</PropertyName> </ListItem> <ListItem> <PropertyName>VolumeId</PropertyName> </ListItem> <ListItem> <PropertyName>FilesCount</PropertyName> </ListItem> <ListItem> <PropertyName>OptimizedFilesCount</PropertyName> </ListItem> <ListItem> <Label>Size</Label> <ScriptBlock> $size = $_.Size; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>SizeOnDisk</Label> <ScriptBlock> $size = $_.SizeOnDisk; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <Label>DedupSize</Label> <ScriptBlock> $size = $_.DedupSize; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <PropertyName>DedupChunkCount</PropertyName> </ListItem> <ListItem> <Label>DedupDistinctSize</Label> <ScriptBlock> $size = $_.DedupDistinctSize; $postfixes = @( "B", "KB", "MB", "GB", "TB", "PB" ) for ($i=0; $size -ge 1024 -and $i -lt $postfixes.Length - 1; $i++) { $size = $size / 1024; } return "" + [System.Math]::Round($size,2) + " " + $postfixes[$i]; </ScriptBlock> </ListItem> <ListItem> <PropertyName>DedupDistinctChunkCount</PropertyName> </ListItem> </ListItems> </ListEntry> </ListEntries> </ListControl> </View> </ViewDefinitions> </Configuration>