New-MedvWorkspace

New-MedvWorkspace

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

Sintassi

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




Descrizione dettagliata

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.

Parametri

-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

nessuno

Obbligatorio?

true

Posizione?

3

Valore predefinito

nessuno

Accetta input da pipeline?

true (ByPropertyName)

Accetta caratteri jolly?

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

nessuno

Obbligatorio?

true

Posizione?

2

Valore predefinito

nessuno

Accetta input da pipeline?

true (ByPropertyName)

Accetta caratteri jolly?

false

-WorkspaceName<String>

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


Alias

nessuno

Obbligatorio?

true

Posizione?

1

Valore predefinito

nessuno

Accetta input da pipeline?

true (ByPropertyName)

Accetta caratteri jolly?

false

<CommonParameters>

Questo cmdlet supporta i parametri comuni: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Per altre informazioni, vedere   about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Input

Il tipo di input è il tipo degli oggetti che è possibile reindirizzare al cmdlet.

Output

Il tipo di output corrisponde al tipo di oggetti generati dal cmdlet.

Esempi

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"

Argomenti correlati

Aggiunte alla community

AGGIUNGI
Mostra: