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

Get-UserLockCommand Cmdlet

Synopsis

Gets basic information about cmdlets and other elements of UserLock PowerShell commands.

Syntax

Get-UserLockCommand [-Name <string[]>][<CommonParameters>]

Description

The Get-UserLockCommand cmdlet gets basic information about cmdlets and other elements of UserLock PowerShell commands in the session, such as aliases, functions, filters, scripts, and applications. Get-UserLockCommand gets its data directly from the code of a cmdlet, function, script, or alias, unlike Get-Help, which gets its information from help topic files. Without parameters, Get-UserLockCommand gets all of the UserLock cmdlets and functions in the current session. Caution: PowerShell 3.0 is required.

Parameters

-Name <string[]>

Gets information only about the cmdlets or command elements with the specified name. The String represents all or part of the name of the cmdlet or command element. Wildcards characters are permitted.

Required false
Position 1
Accepts pipeline input true (ByPropertyName)
Accepts wildcard characters true

<CommonParameters>

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

Input Type

System.String

Return Type

Object

Notes

You can also refer to Get-UserLockCommand by its alias, "gulcm". For more information, see about_Aliases.

Examples

Example 1

Get-UserLockCommand

Gets basic information about cmdlets and other elements of UserLock PowerShell commands. The default display lists the command type ("Cmdlet" or "Function" or "Filter"), the name of the cmdlet or function, and the syntax or function definition.

Example 2

Get-UserLockCommand | where {$_.CommandType -eq 'Cmdlet'} | Sort-Object Noun | Format-Table -GroupBy Noun

This command retrieves all of the UserLock cmdlets, sorts them alphabetically by the noun in the cmdlet name, and then displays them in noun-based groups. This display can help you find the cmdlets for a task. By default, Get-UserLockCommand displays items in the order in which the system discovers them, which is also the order in which they are selected to run when a run command is ambiguous.

Example 3

Get-UserLockCommand *UserlockProtectedAccount*,*UserLockSession*

This command retrieves all of the UserLock PowerShell commands about protected accounts and sessions.

Example 4

Get-UserLockCommand * | where {$_.CommandType -eq 'Alias'}

This command lists all UserLock PowerShell aliases.

Related Links

Get-UserLockSession

Get-UserLockProtectedAccount