Gets a service template stored in the VMM library.
Description
The Get-SCServiceTemplate cmdlet gets one or more service templates stored in the System Center Virtual Machine Manager (VMM) library.
For more information about Get-SCServiceTemplate, type: "Get-Help Get-SCServiceTemplate -online".
Parameters
All
Required?
false
Accept Pipeline Input?
false
Position?
named
Retrieves a full list of all subordinate objects independent of the parent object. For example, the command Get-SCVirtualDiskDrive -All retrieves all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.
Name
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the name of a VMM object.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
ID
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the numerical identifier (as a globally unique identifier, or GUID) for a specific object.
Name
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the name of a VMM object.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Examples
1: Get all service template objects in
the library.
The first command gets all service template objects on VMMServer01, selects from the results the service template objects that contain "Service" in their name, and then stores the objects in the $SvcTemplates variable.
The second command displays information about the service template objects to the user.