Get-SCServerFeature

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

Syntax

Get-SCServerFeature
   [-VMMServer <ServerConnection>]
   [-Name <String>]
   [<CommonParameters>]
Get-SCServerFeature
   [-VMMServer <ServerConnection>]
   -ID <Guid>
   [-Name <String>]
   [<CommonParameters>]
Get-SCServerFeature
   [-VMMServer <ServerConnection>]
   -GuestOSProfile <GuestOSProfile>
   [-Name <String>]
   [<CommonParameters>]
Get-SCServerFeature
   [-VMMServer <ServerConnection>]
   -VMTemplate <Template>
   [-Name <String>]
   [<CommonParameters>]
Get-SCServerFeature
   [-VMMServer <ServerConnection>]
   -OperatingSystem <OperatingSystem>
   [-Name <String>]
   [<CommonParameters>]

Description

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

Examples

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

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

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

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

Required Parameters

-GuestOSProfile

Specifies a guest operating system profile object.

Type:GuestOSProfile
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ID

Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-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.

Type:OperatingSystem
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VMTemplate

Specifies a VMM template object used to create virtual machines.

Type:Template
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Name

Specifies the name of a VMM object.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

ServerFeature

This cmdlet returns a ServerFeature object.