New-MedvWorkspace

New-MedvWorkspace

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

Syntaxe

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




Description détaillée

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.

Paramètres

-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.


Alias

none

Obligatoire ?

true

Position ?

3

Valeur par défaut

none

Accepter l’entrée de pipeline ?

true (ByPropertyName)

Accepter les caractères génériques ?

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.


Alias

none

Obligatoire ?

true

Position ?

2

Valeur par défaut

none

Accepter l’entrée de pipeline ?

true (ByPropertyName)

Accepter les caractères génériques ?

false

-WorkspaceName<String>

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


Alias

none

Obligatoire ?

true

Position ?

1

Valeur par défaut

none

Accepter l’entrée de pipeline ?

true (ByPropertyName)

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 (http://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.

Sorties

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

Exemples

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"

Rubriques connexes

Ajouts de la communauté

AJOUTER
Afficher: