Get-UserLockWiFiSession

Gets the opened Wi-Fi sessions registered in UserLock server.

Published May 31, 2025

Synopsis

Gets the opened Wi-Fi sessions registered in UserLock server.

Syntax

powershell
Get-UserLockWiFiSession[-UserName <string[]>][-UserLockServerName <string>][<CommonParameters>]

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

Get-UserLockWiFiSession[-ComputerName] <string[]>[-UserLockServerName <string>][<CommonParameters>]

Description

The Get-UserLockWiFiSession cmdlet gets the opened Wi-Fi sessions registered in UserLock server, and searches them by user name (name of the account that opened the session), by computer name (where the session is located) or by name of a session (Universal key name, to uniquely identify it by specifying the type of session). If the cmdlet is used without parameters, all Wi-Fi sessions will be returned. Caution: PowerShell 3.0 is required.

Parameters

-UserName <string[]>

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

-Name <string[]>

Specifies the name of a session (Universal key name of the session, to uniquely identify it by specifying the type of session). You can type multiple names (separated by commas). Wildcard characters are permitted.

-ComputerName <string[]>

Specifies the name of the computer where the session is located. You can type multiple computer names (separated by commas). Wildcard characters are permitted.

-UserLockServerName <string>

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

<CommonParameters>

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

Input Type

None

Return Type

ISDecisions.UserLockLibrary.RasSession or None

Notes

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

Examples

Example 1

powershell
Get-UserLockWiFiSession -UserLockServerName MyUlSrv

Gets the Wi-Fi sessions registerered in the 'MyUlSrv' UserLock server.

Example 2

powershell
Get-UserLockWiFiSession Alice -UserLockServerName MyUlSrv

Gets the Wi-Fi sessions, opened by the user Alice, registered in the 'MyUlSrv' UserLock server.

Get-UserLockSession

Get-UserLockInteractiveSession

Get-UserLockIisSession

Reset-UserLockSession

Get-UserLockCommand