Skip to main content

Convert-AppIconToBase64

SYNOPSIS​

Converts an application's associated icon to Base64.

SYNTAX​

Convert-AppIconToBase64 [-Path] <String> [<CommonParameters>]

DESCRIPTION​

Extracts the icon associated with a Windows application file and returns its bytes as a Base64 string.

EXAMPLES​

EXAMPLE 1​

Convert-AppIconToBase64 -Path 'C:\Program Files\Example\Example.exe'

Converts the application's associated icon to Base64.

PARAMETERS​

-Path​

Specifies a path to one or more locations.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
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.

INPUTS​

OUTPUTS​

System.String​

NOTES​

ALIASES​

None.

PLATFORM APPLICABILITY​

Windows only. The platform-aware loader does not export this command on Linux or macOS.

POWERSHELL COMPATIBILITY​

See PowerShell compatibility for the supported runtime policy. PowerShell 7.6 LTS is preferred.

https://docs.keldor.dev/powershell/keldor/Convert-AppIconToBase64