Enable-WmsVirtualDesktopRole
Installs the Hyper-V virtual desktop role and customizes it for use with MultiPoint services.
Syntax
Default (Default)
Enable-WmsVirtualDesktopRole
[-Restart]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Enable-WmsVirtualDesktopRole cmdlet installs the virtual desktop Hyper-V role if it isn't already installed, and optionally restarts the computer to apply the change.
Examples
Example 1: Install the Hyper-V virtual desktop role
PS C:\> Enable-WmsVirtualDesktopRole -Restart
This command installs the Hyper-V virtual desktop role and reboots the computer to apply the change.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
| Type: | SwitchParameter |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | cf |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Restart
Indicates that this operation automatically restarts the computer to apply the change.
Parameter properties
| Type: | SwitchParameter |
| 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 |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
| Type: | SwitchParameter |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | wi |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| 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.