Lock-WmsSession

Locks a session for a user.

Syntax

Lock-WmsSession
    [-SessionId] <UInt32[]>
    [-Message] <String>
    [-Server <String>]
    [<CommonParameters>]
Lock-WmsSession
    [-All]
    [-Message] <String>
    [-Server <String>]
    [<CommonParameters>]

Description

The Lock-WmsSession cmdlet blocks desktop use for a specific user. You can specify a message to display on the user's screen.

Examples

Example 1: Lock a session

PS C:\> Lock-WmsSession -SessionId 3 -Message "Your station is locked"

This command locks the specified session and displays the message "Your station is locked" to the user.

Parameters

-All

Indicates that this operation applies to all sessions on the target host.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Message

Specifies the message to display.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-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 an array of session IDs.

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

Inputs

UInt32[]

String

Outputs

Object