Skip to content

Latest commit

 

History

History
115 lines (76 loc) · 2.22 KB

Import-PSTypeExtension.md

File metadata and controls

115 lines (76 loc) · 2.22 KB
external help file Module Name online version schema
PSTypeExtensionTools-help.xml
PSTypeExtensionTools
2.0.0

Import-PSTypeExtension

SYNOPSIS

Import type extension definitions.

SYNTAX

Import-PSTypeExtension [-Path] <String> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Use this command to import extended type definitions from a JSON or XML file that was created with Export-PSTypeExtension.

EXAMPLES

EXAMPLE 1

PS C:\> Import-PSTypeExtension -Path C:\work\stringtypes.json

Import definitions from a JSON file.

EXAMPLE 2

PS C:\> dir c:\scripts\mytypes | Import-PSTypeExtension

Import definitions from files in C:\Scripts\MyTypes. Presumably, these are XML or JSON files created with Export-PSTypeExtension.

PARAMETERS

-Path

The name of the imported file. The extension must be .xml or .json.

Type: String
Parameter Sets: (All)
Aliases: FullName

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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

-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

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

None

OUTPUTS

None

NOTES

Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/

RELATED LINKS

Export-PSTypeExtension

Get-PSTypeExtension

Update-TypeData