---
locale: "en"
updated_at: "2025-10-27T19:55:52.874Z"
canonical: "https://www.isdecisions.com/en/userlock/docs/build-with-userlock/powershell/cmdlet-reference/get-userlockserver"
---

# Get-UserLockServer

## Synopsis

Gets the UserLockServer object.

## Syntax

```powershell
Get-UserLockServer [-UserLockServerName <string>][<CommonParameters>]
```

## Description

The Get-UserLockServer cmdlet gets the UserLockServer object connected to the server passed by parameter (localhost if there is no parameter). Caution: PowerShell 3.0 is required.

## Parameters

#### -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.UserLockServer

## Notes

You can also refer to Get-UserLockServer by its alias, "gulsrv". For more information, see about_Aliases. You should have some UserLock administrative access right, otherwise you will have no UserLock server reliable object.

## Examples

#### Example 1

```powershell
Get-UserLockServer
```

Gets the UserLockServer object of the localhost UserLock server.

#### Example 2

```powershell
Get-UserLockServer -UserLockServerName 'MyUlSrv'
```

Gets the UserLockServer object of the 'MyUlSrv' UserLock server.

## Related Links

[Get-UserLockServerConfiguration](/userlock/docs/build-with-userlock/userlock-powershell/cmdlet-help/get-userlockserverconfiguration)

[Set-UserLockServerConfiguration](/userlock/docs/build-with-userlock/userlock-powershell/cmdlet-help/set-userlockserverconfiguration)

[Get-UserLockCommand](/userlock/docs/build-with-userlock/userlock-powershell/cmdlet-help/get-userlockcommand)
