Export (0) Print
Expand All
Expand Minimize

Get-SCTemplatePackage

Updated: September 27, 2012

Applies To: System Center 2012 - Virtual Machine Manager

Get-SCTemplatePackage

Gets an exported service template or virtual machine template package at a specified location.

Syntax

Parameter Set: Default
Get-SCTemplatePackage -Path <String> [ <CommonParameters>]




Detailed Description

The Get-SCTemplatePackage gets an exported service template or virtual machine template package at a specified location. After you get the template package object, you can read the properties of the object, or you can input the object into the Import-SCTemplate cmdlet.

For more information about importing a template package, type: "Get-Help Import-SCTemplate -detailed".

For more information about Get-SCTemplatePackage, type: "Get-Help Get-SCTemplatePackage -online".

Parameters

-Path<String>

Specifies the destination path for the operation.

Example formats:

Local path -Path "F:\"

UNC path -Path "\\Library\Templates"

Volume GUID path -Path "\\?\Volume{4703c1ea-8ae7-11db-b473-00123f7603e3}\"

VMware ESX path "Path "[storage1]\MyVMwareFolderForVMs\MyVM.vmx"

Citrix XenServer path - Path "Local storage[99b6212f-b63d-c676-25f9-d6c460992de7]"

Wildcards are supported for "Get" cmdlets and when you specify the UNC path:

Example format:

UNC path -Path "\\VMHostServer\MyVMs\*VM*"


Aliases

none

Required?

true

Position?

named

Default Value

none

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.

Inputs

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

Outputs

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

  • TemplatePackage[]
  • TemplatePackage

Examples

1: Get a template package from a specified location.

This command gets the template package object in C:\TemplateExports and stores the object in the $TemplatePackage variable.


PS C:\> $TemplatePackage = Get-SCTemplatePackage -Path "C:\TemplateExports"

Related topics

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