external help file | Module Name | online version | schema |
---|---|---|---|
DSInternals.PowerShell.dll-Help.xml |
DSInternals |
2.0.0 |
Helper cmdlet that converts binary input to a hexadecimal string.
ConvertTo-Hex [-Input] <Byte[]> [-UpperCase] [<CommonParameters>]
Converts a byte array to its hexadecimal representation.
PS C:\> ConvertTo-Hex -Input 0,255,32
00ff20
Converts the byte array to its hexadecimal representation, using lowercase characters.
PS C:\> ConvertTo-Hex -Input 0,255,32 -UpperCase
00FF20
Converts the byte array to its hexadecimal representation, using uppercase characters.
Specifies the binary input in the form of an array of bytes.
Type: Byte[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Indicates that the output should be encoded using uppercase characters instead of lowercase ones.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.