Install-LWAzureWindowsFeature
SYNOPSIS
Enable a Windows feature on an Azure VM
SYNTAX
Install-LWAzureWindowsFeature [-Machine] <Machine[]> [-FeatureName] <String[]> [-IncludeAllSubFeature]
[-IncludeManagementTools] [-UseLocalCredential] [-AsJob] [-PassThru] [<CommonParameters>]
DESCRIPTION
Enable a Windows feature on an Azure VM
EXAMPLES
Example 1
PS C:\> Install-LWAzureWindowsFeature -Machine Host1,Host2 -FeatureName ActiveDirectory -IncludeAllSubFeature -IncludeManagementTools
Install the role ActiveDirectory including management tools and subfeatures on Host1 and Host2
PARAMETERS
-AsJob
Indicates that the cmdlet should run in the background
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-FeatureName
The feature to install
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IncludeAllSubFeature
Indicates that all subfeatures should be installed as well
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-IncludeManagementTools
Indicates that management tools should be included
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Machine
The host to install on
Type: Machine[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PassThru
Indicates that objects will be returned
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-UseLocalCredential
Indicates that the local installation account should be used
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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.