Export-StartLayout

Export-StartLayout

Exports the layout of the Start screen.

Syntaxe

Parameter Set: Literal
Export-StartLayout [-LiteralPath] <String> [[-As] <AsFileType> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: Non-literal
Export-StartLayout [-Path] <String> [[-As] <AsFileType> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Description détaillée

The Export-StartLayout cmdlet exports the layout of the Start screen of the current user. You can export layout as an .xml file to verify the layout, or you can export layout as a .bin file to modify the layout of an existing Windows image. Specify the appropriate file name extension, .bin or .xml, in the name of the file. To modify the layout of a Windows image, export the layout as a .bin file, and then import it into a Windows image by using the Import-StartLayout cmdlet.

Paramètres

-As<AsFileType>

Specifies a file type to export. Les valeurs acceptables pour ce paramètre sont :

-- BIN. Export as a .bin file.
-- XML. Export as an .xml file.

The default value is BIN.

Alias

none

Obligatoire ?

false

Position ?

2

Valeur par défaut

BIN

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-LiteralPath<String>

Specifies a literal path to a layout file. Include the file name extension, .bin or .xml. This parameter does not accept the wildcard character (*). If the path includes an escape character (\), enclose the string in single quotes (').

Alias

none

Obligatoire ?

true

Position ?

2

Valeur par défaut

none

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-Path<String>

Specifies an absolute path to a layout file. Include the file name extension, .bin or .xml.

Alias

none

Obligatoire ?

true

Position ?

2

Valeur par défaut

Current Location

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-Confirm

Votre confirmation sera requise avant l’exécution de l’applet de commande.

Obligatoire ?

false

Position ?

named

Valeur par défaut

false

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

-WhatIf

Présente les conséquences éventuelles de l’exécution de l’applet de commande. L’applet de commande n’est pas exécutée.

Obligatoire ?

false

Position ?

named

Valeur par défaut

false

Accepter l’entrée de pipeline ?

false

Accepter les caractères génériques ?

false

<CommonParameters>

Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d’informations, consultez about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entrées

Le type d’entrée correspond au type des objets que vous pouvez transmettre à l’applet de commande.

  • Enum

    You can specify the following file formats:

    -- BIN. Export as a .bin file.
    -- XML. Export as an .xml file.

Sorties

Le type de sortie est le type des objets émis par l’applet de commande.

Exemples

Example 1: Export the layout as a .bin file

This command exports the layout of the Start screen to a file named Marketing.bin in the C:\Layouts folder. The command specifies a value of BIN for the As parameter, so the cmdlet creates a .bin file.

PS C:\> Export-StartLayout -Path "C:\Layouts\Marketing.bin" -As BIN

Rubriques connexes

Import-StartLayout