Export (0) Print
Expand All

Export-MedvWorkspace

Export-MedvWorkspace

Creates Windows Installer file and related files.

Syntax

Parameter Set: AllParameters
Export-MedvWorkspace [-Path] <String> [-InputObject] <MedvWorkspace> [-Overwrite] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Export-MedvWorkspace cmdlet creates a Windows Installer file and related files. Specify a MedvWorkspace object that contains the package details.

Parameters

-InputObject<MedvWorkspace>

Specifies a MedvWorkspace object. To obtain a MedvWorkspace object, use the New-MedvWorkspace cmdlet.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Overwrite

Indicates that this cmdlet overwrites an existing MED-V workspace package.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Path<String>

Specifies the full path of the Windows Installer file to generate.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.Medv.Administration.Commands.MedvWorkspace

    This cmdlet accepts a MedvWorkspace object. A MedvWorkspace object contains the information and location of all files needed to make the workspace setup files.


Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Create a workspace package

This command uses the New-MedvWorkspace to create an object that contains all the information necessary to create a MED-V workspace. The command passes the result to the current cmdlet. That cmdlet creates a workspace package that includes files necessary to install a workspace package with the name XPCompat that uses the settings in the specified registry file.


New-MedvWorkspace -WorkspaceName "XPCompat" -VhdfilePath "C:\xpImage.vhd" -SettingsFilePath "XPCompat.reg" | Export-MedvWorkspace -Path "XPCompat.msi"

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft