UserLock Documentation
UserLock Documentation
You are here: Reference > UserLock PowerShell > Cmdlet Help > Get-UserLockOrphanedInteractiveSession

Get-UserLockOrphanedInteractiveSession Cmdlet

Synopsis

Gets the interactive sessions registered in UserLock server.

Syntax

Get-UserLockOrphanedInteractiveSession [-Name] <string[]> [-UserLockServerName <string>][<CommonParameters>]

Description

The Get-UserLockOrphanedInteractiveSession cmdlet gets only sessions on unavailable computers registered in UserLock server, and searches them by user name (name of the account that opened the session). Also you can get all kinds of interactive sessions (Workstation, Terminal or both). If the cmdlet is used without parameters all orphaned Interactive (Workstation and Terminal) sessions will be returned. Caution: PowerShell 3.0 is required.

Parameters

-Name <string[]>

Specifies the name of a user account. You can type multiple names (separated by commas). Wildcard characters are permited.

Required true
Position named
Accepts pipeline input true (ByValue, ByPropertyName)
Accepts wildcard characters true

-UserLockServerName <string>

Specifies the name of the UserLock server. The default is the localhost name.

Required false
Position named
Accepts pipeline input false
Accepts wildcard characters false
Default Value '.'

<CommonParameters>

For more information about common parameters, type "Get-Help about_commonparameters".

Input Type

None

Return Type

ISDecisions.UserLockLibrary.UserSession or None

Notes

You can also refer to Get-UserLockOrphanedInteractiveSession by its alias, "gulois". For more information, see about_Aliases. To use Get-UserLockOrphanedInteractiveSession, you must have the Read "User sessions" UserLock administrative access right.

Examples

Example 1

Get-UserLockOrphanedInteractiveSession -UserLockServerName MyUlSrv

Gets the orphaned interactive sessions registerered in the 'MyUlSrv' UserLock server.

Example 2

Get-UserLockOrphanedInteractiveSession Alice -UserLockServerName MyUlSrv

Gets the orphaned Interactive sessions, opened by the user Alice, registered in the 'MyUlSrv' UserLock server.

Related Links

Get-UserLockInteractiveSession

Reset-UserLockSession

Close-UserLockSession

Get-UserLockCommand