< Back
Unregister-PSFConfig
Post
NAME Unregister-PSFConfig
SYNOPSIS
Removes registered configuration settings.
SYNTAX
Unregister-PSFConfig [-ConfigurationItem <Config[]>] [-FullName <String[]>] [-Scope {UserDefault | UserMandatory |
SystemDefault | SystemMandatory | FileUserLocal | FileUserShared | FileSystem}] [<CommonParameters>]
Unregister-PSFConfig -Module <String> [-Name <String>] [-Scope {UserDefault | UserMandatory | SystemDefault |
SystemMandatory | FileUserLocal | FileUserShared | FileSystem}] [<CommonParameters>]
DESCRIPTION
Removes registered configuration settings.
This function can be used to remove settings that have been persisted for either user or computer.
Note: This command has no effect on configuration setings currently in memory.
PARAMETERS
-ConfigurationItem <Config[]>
A configuration object as returned by Get-PSFConfig.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-FullName <String[]>
The full name of the configuration setting to purge.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Module <String>
The module, amongst which settings should be unregistered.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
The name of the setting to unregister.
For use together with the module parameter, to limit the amount of settings that are unregistered.
Required? false
Position? named
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-Scope
Settings can be set to either default or enforced, for user or the entire computer.
By default, only DefaultSettings for the user are unregistered.
Use this parameter to choose the actual scope for the command to process.
Required? false
Position? named
Default value UserDefault
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PSFConfig | Unregister-PSFConfig
Completely removes all registered configurations currently loaded in memory.
In most cases, this will mean removing all registered configurations.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Unregister-PSFConfig -Scope SystemDefault -FullName 'MyModule.Path.DefaultExport'
Unregisters the setting 'MyModule.Path.DefaultExport' from the list of computer-wide defaults.
Note: Changing system wide settings requires running the console with elevation.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Unregister-PSFConfig -Module MyModule
Unregisters all configuration settings for the module MyModule.
RELATED LINKS
SYNOPSIS
Removes registered configuration settings.
SYNTAX
Unregister-PSFConfig [-ConfigurationItem <Config[]>] [-FullName <String[]>] [-Scope {UserDefault | UserMandatory |
SystemDefault | SystemMandatory | FileUserLocal | FileUserShared | FileSystem}] [<CommonParameters>]
Unregister-PSFConfig -Module <String> [-Name <String>] [-Scope {UserDefault | UserMandatory | SystemDefault |
SystemMandatory | FileUserLocal | FileUserShared | FileSystem}] [<CommonParameters>]
DESCRIPTION
Removes registered configuration settings.
This function can be used to remove settings that have been persisted for either user or computer.
Note: This command has no effect on configuration setings currently in memory.
PARAMETERS
-ConfigurationItem <Config[]>
A configuration object as returned by Get-PSFConfig.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-FullName <String[]>
The full name of the configuration setting to purge.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Module <String>
The module, amongst which settings should be unregistered.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
The name of the setting to unregister.
For use together with the module parameter, to limit the amount of settings that are unregistered.
Required? false
Position? named
Default value *
Accept pipeline input? false
Accept wildcard characters? false
-Scope
Settings can be set to either default or enforced, for user or the entire computer.
By default, only DefaultSettings for the user are unregistered.
Use this parameter to choose the actual scope for the command to process.
Required? false
Position? named
Default value UserDefault
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PSFConfig | Unregister-PSFConfig
Completely removes all registered configurations currently loaded in memory.
In most cases, this will mean removing all registered configurations.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Unregister-PSFConfig -Scope SystemDefault -FullName 'MyModule.Path.DefaultExport'
Unregisters the setting 'MyModule.Path.DefaultExport' from the list of computer-wide defaults.
Note: Changing system wide settings requires running the console with elevation.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Unregister-PSFConfig -Module MyModule
Unregisters all configuration settings for the module MyModule.
RELATED LINKS