Editar

Compartir a través de


Export-StartLayout

Exports the layout of the Start screen.

Syntax

Non-literal

Export-StartLayout
    [-Path] <String>
    [-UseDesktopApplicationID]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Literal

Export-StartLayout
    -LiteralPath <String>
    [-UseDesktopApplicationID]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Export-StartLayout cmdlet exports the layout of the tiles on Start of the current user. You can export layout and use Import-StartLayout as well as other management policies for the Start layout. Specify the .xml file name extension in the name of the file.

Examples

Example 1: Export the layout

PS C:\> Export-StartLayout -Path "C:\Layouts\Marketing.xml"

This command exports the layout of the tiles on Start to a file named Marketing.xml in the C:\Layouts folder.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LiteralPath

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Literal
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Path

Specifies an absolute path to a layout file.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Non-literal
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UseDesktopApplicationID

Specifies that the layout file should export the DesktopApplicationID value instead of DesktopApplicationLinkPath which is the default. DesktopApplicationID is the application's ID and DesktopApplicationLinkPath is a path to a shortcut link (.lnk file) to a Windows desktop application.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

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

Enum

You can specify the following file format:

  • XML. Export as an .xml file.