Get-SCServerFeature
Gets the operating system roles and features that have been added to a guest operating system profile.
Syntax
AllParamSet (Default)
Get-SCServerFeature
[-VMMServer <ServerConnection>]
[-Name <String>]
[<CommonParameters>]
IDParamSet
Get-SCServerFeature
-ID <Guid>
[-VMMServer <ServerConnection>]
[-Name <String>]
[<CommonParameters>]
OSProfileParamSet
Get-SCServerFeature
-GuestOSProfile <GuestOSProfile>
[-VMMServer <ServerConnection>]
[-Name <String>]
[<CommonParameters>]
TemplateParamSet
Get-SCServerFeature
-VMTemplate <Template>
[-VMMServer <ServerConnection>]
[-Name <String>]
[<CommonParameters>]
OSParamSet
Get-SCServerFeature
-OperatingSystem <OperatingSystem>
[-VMMServer <ServerConnection>]
[-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.
Parameters
-GuestOSProfile
Specifies a guest operating system profile object.
Parameter properties
Type: | GuestOSProfile |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
OSProfileParamSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ID
Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
IDParamSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Specifies the name of a VMM object.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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
.
Parameter properties
Type: | OperatingSystem |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
OSParamSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMMServer
Specifies a VMM server object.
Parameter properties
Type: | ServerConnection |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMTemplate
Specifies a VMM template object used to create virtual machines.
Parameter properties
Type: | Template |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
TemplateParamSet
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
ServerFeature
This cmdlet returns a ServerFeature object.