Unpublish-WmsDesktop

Stops the sharing of the specified session desktop.

Syntax

Unpublish-WmsDesktop
         [-SessionId] <UInt32>
         [-Server <String>]
         [<CommonParameters>]

Description

The Unpublish-WmsDesktop cmdlet stops the sharing of the specified session desktop.

Examples

Example 1: Stop sharing a desktop

PS C:\> Unpublish-WmsDesktop -SessionId 2

This command stops desktop sharing of the desktop with the session ID of 2.

Parameters

-Server

Specifies the fully qualified host name of the MultiPoint Server that is the target of the command. The default is localhost.

Type:String
Aliases:ComputerName
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-SessionId

Specifies the session ID to stop sharing.

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

Inputs

UInt32

String

Outputs

Object