< Back
Register-PSFConfigSchema
Post
NAME Register-PSFConfigSchema
SYNOPSIS
Register new schemas for ingersting configuration data.
SYNTAX
Register-PSFConfigSchema [[-Name] <String>] [[-Schema] <ScriptBlock>] [<CommonParameters>]
DESCRIPTION
Register new schemas for ingersting configuration data.
This can be used to dynamically extend the configuration system and add new file types as supported input.
PARAMETERS
-Name <String>
The name of the Schema to register.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Schema <ScriptBlock>
The Schema Code to register.
Required? false
Position? 2
Default value
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:\\>Register-PSFConfigSchema -Name Default -Schema $scriptblock
Registers the scriptblock stored in $scriptblock under 'Default'
RELATED LINKS
SYNOPSIS
Register new schemas for ingersting configuration data.
SYNTAX
Register-PSFConfigSchema [[-Name] <String>] [[-Schema] <ScriptBlock>] [<CommonParameters>]
DESCRIPTION
Register new schemas for ingersting configuration data.
This can be used to dynamically extend the configuration system and add new file types as supported input.
PARAMETERS
-Name <String>
The name of the Schema to register.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Schema <ScriptBlock>
The Schema Code to register.
Required? false
Position? 2
Default value
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:\\>Register-PSFConfigSchema -Name Default -Schema $scriptblock
Registers the scriptblock stored in $scriptblock under 'Default'
RELATED LINKS