Enable-WmsVirtualDesktopRole

Installs the Hyper-V virtual desktop role and customizes it for use with MultiPoint services.

Syntax

Enable-WmsVirtualDesktopRole
      [-Confirm]
      [-Restart]
      [-WhatIf]
      [<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

-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
-Restart

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
-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

Inputs

None.

Outputs

None.