Lock-WmsSession

Locks a session for a user.

Syntax

Lock-WmsSession
    [-Message] <String>
    [-All]
    [-Server <String>]
    [<CommonParameters>]
Lock-WmsSession
    [-SessionId] <UInt32[]>
    [-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.

Required Parameters

-All

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

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Message

Specifies the message to display.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SessionId

Specifies an array of session IDs.

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.