Bearbeiten

Freigeben über


Export-UevPackage

Exports the settings stored in a settings package.

Syntax

Export-UevPackage
      [-Path] <String[]>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Export-UevPackage
      -LiteralPath <String[]>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Export-UevPackage cmdlet exports the settings that are stored in a settings package to an XML file.

Examples

Example 1: Export a UE-V package

PS C:\> Export-UevPackage -Path "MicrosoftCalculator6.pkgx"
<SettingsDocument>
<registry>
<Setting Type="VT_BINARY" Name="registry://HKCU\Software\Microsoft\Calc\Window_Placement" Action="Update">LAAAAAAAAAABAAAA/////////////////////60AAABQAAAAVAIAANQBAAA=</Setting>
<Setting Type="VT_DWORD" Name="registry://HKCU\Software\Microsoft\Calc\layout" Action="Update">2</Setting>
</registry>
</SettingsDocument>

This command exports a settings package file for Microsoft calculator by using the Path parameter.

Example 2: Export a UE-V package by name

PS C:\> Export-UevPackage -Path "*calc*.pkgx"


<SettingsDocument>
<registry>
<Setting Type="VT_BINARY" Name="registry://HKCU\Software\Microsoft\Calc\Window_Placement" Action="Update">LAAAAAAAAAABAAAA/////////////////////60AAABQAAAAVAIAANQBAAA=</Setting>
<Setting Type="VT_DWORD" Name="registry://HKCU\Software\Microsoft\Calc\layout" Action="Update">2</Setting>
</registry>
</SettingsDocument>

This command exports a settings package file for Microsoft calculator by using wildcard characters in the file name.

Example 3: Export a UE-V package by path

PS C:\> Export-UevPackage -LiteralPath "MicrosoftCalculator6.pkgx"
<SettingsDocument>
<registry>
<Setting Type="VT_BINARY" Name="registry://HKCU\Software\Microsoft\Calc\Window_Placement" Action="Update">LAAAAAAAAAABAAAA/////////////////////60AAABQAAAAVAIAANQBAAA=</Setting>
<Setting Type="VT_DWORD" Name="registry://HKCU\Software\Microsoft\Calc\layout" Action="Update">2</Setting>
</registry>
</SettingsDocument>

This command exports a settings package file for Microsoft calculator. The example does not use wildcard characters in the path.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-LiteralPath

Specifies an array of literal file paths. The cmdlet exports the settings location templates that have the literal paths that you specify.

Type:String[]
Aliases:PSPath
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Path

Specifies an array of file paths. The cmdlet exports the settings location templates that have the paths you specify. Use wildcards to specify multiple files.

Type:String[]
Aliases:Name
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

string[]

A collection of paths to the settings packages.

Outputs

String

This cmdlet generates XML text that describes the settings stored in the specified settings package.