ConvertFrom-MtSysvolByteArray
SYNOPSIS
Converts bounded SYSVOL file bytes to text.
SYNTAX
ConvertFrom-MtSysvolByteArray [-Bytes] <Byte[]> [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Honors UTF-8, UTF-16 little-endian, and UTF-16 big-endian byte order marks. Files without a byte order mark are decoded as strict UTF-8, with UTF-16 little-endian used only when the byte pattern indicates UTF-16 text.
EXAMPLES
EXAMPLE 1
ConvertFrom-MtSysvolByteArray -Bytes ([Text.Encoding]::UTF8.GetBytes('Version=1'))
PARAMETERS
-Bytes
Bounded bytes read by a SYSVOL adapter.
Type: Byte[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.