Remove-SCServerFeature

Removes an operating system role or feature from a guest operating system profile.

Syntax

Remove-SCServerFeature
      -ServerFeature <ServerFeature>
      -GuestOSProfile <GuestOSProfile>
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-SCServerFeature
      -ServerFeature <ServerFeature>
      -VMTemplate <Template>
      [-RunAsynchronously]
      [-PROTipID <Guid>]
      [-JobVariable <String>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCServerFeature cmdlet deletes an operating system role or feature from a guest operating system profile.

Examples

Example 1: Remove a server feature from a guest operating system profile

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

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

The second command gets the server feature object named Failover-Clustering and stores the object in the $Feature variable.

The last command removes the server feature stored in $Feature from the guest operating system profile stored in $OSProfile.

Required Parameters

-GuestOSProfile

Specifies a guest operating system profile object.

Type:GuestOSProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServerFeature

Specifies a server feature object.

Type:ServerFeature
Position:Named
Default value:None
Accept pipeline input:False
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:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

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

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False