Enable-Wms
Virtual
Desktop
Role
Syntax
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.
Optional Parameters
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 |
Indicates that this operation automatically restarts the computer to apply the change.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
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 |
Inputs
None.
Outputs
None.