Uninstall-Font¶
SYNOPSIS¶
Uninstalls a font from the system.
SYNTAX¶
__AllParameterSets¶
Uninstall-Font [-Name] <string[]> [[-Scope] <string[]>] [<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
Uninstalls a font from the system. The function supports removing fonts for either the current user or all users. If attempting to remove a font for all users, administrative privileges are required. The function ensures font files are deleted, and if on Windows, it also unregisters fonts from the registry.
EXAMPLES¶
EXAMPLE 1¶
Uninstall-Font -Name 'Courier New'
Output:
VERBOSE: [Uninstall-Font] - [CurrentUser] - [Courier New] - Processing
VERBOSE: [Uninstall-Font] - [CurrentUser] - [Courier New] - Removing file [C:\Windows\Fonts\cour.ttf]
VERBOSE: [Uninstall-Font] - [CurrentUser] - [Courier New] - Unregistering font [Courier New]
VERBOSE: [Uninstall-Font] - [CurrentUser] - [Courier New] - Done
Uninstalls the 'Courier New' font from the system for the current user.
EXAMPLE 2¶
Uninstall-Font -Name 'Courier New' -Scope AllUsers
Output:
VERBOSE: [Uninstall-Font] - [AllUsers] - [Courier New] - Processing
VERBOSE: [Uninstall-Font] - [AllUsers] - [Courier New] - Removing file [C:\Windows\Fonts\cour.ttf]
VERBOSE: [Uninstall-Font] - [AllUsers] - [Courier New] - Unregistering font [Courier New]
VERBOSE: [Uninstall-Font] - [AllUsers] - [Courier New] - Done
Uninstalls the 'Courier New' font from the system for all users. Requires administrative privileges.
PARAMETERS¶
-Name¶
Name of the font to uninstall.
Type: System.String[]
DefaultValue: ''
SupportsWildcards: true
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Scope¶
Scope of the font to uninstall. CurrentUser will uninstall the font for the current user. AllUsers will uninstall the font so it is removed for all users.
Type: System.String[]
DefaultValue: CurrentUser
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
System.String[]¶
{{ Fill in the Description }}
OUTPUTS¶
NOTES¶
The function does not return any objects.