Unpublish-WmsDesktop
Stops the sharing of the specified session desktop.
Syntax
Default (Default)
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.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | ComputerName |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-SessionId
Specifies the session ID to stop sharing.
Parameter properties
| Type: | UInt32 |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| 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.