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.

Required Parameters

-SessionId

Specifies the session ID to stop sharing.

Type:UInt32
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional 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
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

None.

Outputs

None.