Uninstall-LWHypervWindowsFeature

SYNOPSIS

Disable a Windows feature on a Hyper-V VM

SYNTAX

Uninstall-LWHypervWindowsFeature [-Machine] <Machine[]> [-FeatureName] <String[]> [-IncludeManagementTools]
 [-UseLocalCredential] [-AsJob] [-PassThru] [<CommonParameters>]

DESCRIPTION

Disable a Windows feature on a Hyper-V VM

EXAMPLES

Example 1

PS C:\> Uninstall-LWHypervWindowsFeature -Machine DC01 -FeatureName FS-DFS-Replication -AsJob

Disable DFS-R on DC01 in a background job

PARAMETERS

-AsJob

Indicates that the cmdlet should run in the background

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FeatureName

The feature to disable

Type: String[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IncludeManagementTools

Indicates that management tools should be removed as well

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Machine

The machine to remove the feature from

Type: Machine[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

Returns the jobs

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UseLocalCredential

Indicates that a local credential should be used

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES