CmdID / PowerShell / Cmdlets / Lock
Lock-WmsSession
Locks a session for a user. Windows Server PowerShell reference
From the Windows Server PowerShell reference 4 parameters Its page in the reference
Parameters
-AllIndicates that this operation applies to all sessions on the target host.-MessageSpecifies the message to display.-Server, -ComputerNameSpecifies the fully qualified host name of the MultiPoint Server that is the target of the command.-SessionIdSpecifies an array of session IDs.