Install-Font¶
SYNOPSIS¶
Installs a font in the system
SYNTAX¶
Install-Font [-Path] <String[]> [[-Scope] <Scope[]>] [-Recurse] [-Force] [-ProgressAction <ActionPreference>]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION¶
Installs a font in the system
EXAMPLES¶
EXAMPLE 1¶
Install-Font -Path C:\FontFiles\Arial.ttf
Installs the font file 'C:\FontFiles\Arial.ttf' to the current user profile.
EXAMPLE 2¶
Install-Font -Path C:\FontFiles\Arial.ttf -Scope AllUsers
Installs the font file 'C:\FontFiles\Arial.ttf' so it is available for all users. This requires administrator rights.
EXAMPLE 3¶
Install-Font -Path C:\FontFiles\Arial.ttf -Force
Installs the font file 'C:\FontFiles\Arial.ttf' to the current user profile. If the font already exists, it will be overwritten.
EXAMPLE 4¶
Install-Font -Path C:\FontFiles\Arial.ttf -Scope AllUsers -Force
Installs the font file 'C:\FontFiles\Arial.ttf' so it is available for all users. This requires administrator rights. If the font already exists, it will be overwritten.
EXAMPLE 5¶
Get-ChildItem -Path C:\FontFiles\ -Filter *.ttf | Install-Font
Gets all font files in the folder 'C:\FontFiles\' and installs them to the current user profile.
EXAMPLE 6¶
Get-ChildItem -Path C:\FontFiles\ -Filter *.ttf | Install-Font -Scope AllUsers
Gets all font files in the folder 'C:\FontFiles\' and installs them so it is available for all users. This requires administrator rights.
EXAMPLE 7¶
Get-ChildItem -Path C:\FontFiles\ -Filter *.ttf | Install-Font -Force
Gets all font files in the folder 'C:\FontFiles\' and installs them to the current user profile. If the font already exists, it will be overwritten.
EXAMPLE 8¶
Get-ChildItem -Path C:\FontFiles\ -Filter *.ttf | Install-Font -Scope AllUsers -Force
Gets all font files in the folder 'C:\FontFiles\' and installs them so it is available for all users. This requires administrator rights. If the font already exists, it will be overwritten.
PARAMETERS¶
-Path¶
File or folder path(s) to the font(s) to install.
Type: String[]
Parameter Sets: (All)
Aliases: FullName
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Scope¶
Scope of the font installation. CurrentUser will install the font for the current user only. AllUsers will install the font so it is available for all users on the system.
Type: Scope[]
Parameter Sets: (All)
Aliases:
Accepted values: CurrentUser, AllUsers
Required: False
Position: 2
Default value: CurrentUser
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Recurse¶
Recurse will install all fonts in the specified folder and subfolders.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Force¶
Force will overwrite existing fonts
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf¶
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm¶
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
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.