New-MedvWorkspace

New-MedvWorkspace

Creates an object that contains the properties for a workspace Windows Installer file.

Syntax

Parameter Set: AllParameters
New-MedvWorkspace [-WorkspaceName] <String> [-VhdFilePath] <String> [-SettingsFilePath] <String> [ <CommonParameters>]




Detaillierte Beschreibung

The New-MedvWorkspace cmdlet creates an object that contains the properties needed to create a workspace Windows Installer file. You can use the Export-MedvWorkspace cmdlet to create the setup files necessary to deploy a workspace.

Parameter

-SettingsFilePath<String>

Specifies the full path of a file that has the .reg file name extension. That file contains the MED-V settings for the MED-V workspace. This file is packaged with the setup files. The MED-V workspace packager imports these settings into the registry of the target computer. You can generate this file by using the New-MedvConfiguration and Export-MedvConfiguration cmdlets.


Aliasse

Keiner

Erforderlich?

true

Position?

3

Standardwert

Keiner

Pipelineeingaben akzeptieren?

true (ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-VhdFilePath<String>

Specifies the full path of the virtual hard drive (.vhd) file. This file is converted to a MED-V file and stored with the Windows Installer file. When deployed, the Windows Installer file must be in the same folder as the newly created MED-V file.


Aliasse

Keiner

Erforderlich?

true

Position?

2

Standardwert

Keiner

Pipelineeingaben akzeptieren?

true (ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-WorkspaceName<String>

Specifies the name of the MED-V workspace. The name of the MED-V workspace is displayed to end users.


Aliasse

Keiner

Erforderlich?

true

Position?

1

Standardwert

Keiner

Pipelineeingaben akzeptieren?

true (ByPropertyName)

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

Beispiele

Example 1: Create a workspace configuration object

This command creates an object that contains all the information necessary to create a MED-V workspace named XPCompat. The command specifies a .vhd file and registry settings.


C:\PS>New-MedvWorkspace -WorkspaceName "XPCompat" -VhdfilePath "C:\xpImage.vhd" -SettingsFilePath "XPCompat.reg"

Example 2: Create a workspace package

This command creates an object that contains all the information necessary to create a MED-V workspace. The command passes the result to the Export-MedvWorkspace cmdlet. That cmdlet creates a workspace package.


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

Verwandte Themen

Community-Beiträge

HINZUFÜGEN
Anzeigen: