Export (0) Print
Expand All
Expand Minimize

Get-SCServerFeature

Updated: April 29, 2014

Applies To: System Center 2012 R2 Virtual Machine Manager

Get-SCServerFeature

Gets the operating system roles and features that have been added to a guest operating system profile.

Syntax

Parameter Set: AllParamSet
Get-SCServerFeature [-Name <String> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: IDParamSet
Get-SCServerFeature -ID <Guid> [-Name <String> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: OSParamSet
Get-SCServerFeature -OperatingSystem <OperatingSystem> [-Name <String> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: OSProfileParamSet
Get-SCServerFeature -GuestOSProfile <GuestOSProfile> [-Name <String> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: TemplateParamSet
Get-SCServerFeature -VMTemplate <Template> [-Name <String> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]




Detailed Description

The Get-SCServerFeature cmdlet gets the operating system roles and features that have been added to a guest operating system profile.

Parameters

-GuestOSProfile<GuestOSProfile>

Specifies a guest operating system profile object.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-ID<Guid>

Specifies the numerical identifier as a globally unique identifier (GUID) for a specific object.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of a VMM object.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-OperatingSystem<OperatingSystem>

Specifies the type of operating system for a virtual machine. To list the names of all available operating systems in VMM, type Get-SCOperatingSystem.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-VMTemplate<Template>

Specifies a VMM template object used to create virtual machines.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

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.

  • ServerFeature

Examples

Example 1: Get all operating system features than have been added to a profile

The first command gets the guest operating system profile object named NewOSProfile01, and then stores the object in the $OSProfile variable.

The second command gets all of the server feature objects that have been added to the profile stored in $OSProfile, and then stores the objects in the $ServerFeature array.


PS C:\> $OSProfile = Get-SCGuestOSProfile -Name "NewOSProfile01"
PS C:\> $ServerFeature = Get-SCServerFeature -GuestOSProfile $OSProfile

Related topics

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