Get-SCServerFeature

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

Syntax

Get-SCServerFeature -GuestOSProfile <GuestOSProfile> [-Name <String>] [-VMMServer <ServerConnection>]
 [<CommonParameters>]
Get-SCServerFeature -ID <Guid> [-Name <String>] [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCServerFeature [-Name <String>] -OperatingSystem <OperatingSystem> [-VMMServer <ServerConnection>]
 [<CommonParameters>]
Get-SCServerFeature [-Name <String>] [-VMMServer <ServerConnection>] -VMTemplate <Template>
 [<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.

Parameters

-GuestOSProfile

Specifies a guest operating system profile object.

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

Specifies the name of a VMM object.

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

Specifies a VMM server object.

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

Outputs

ServerFeature

This cmdlet returns a **ServerFeature** object.