Skip to content

Invoke-LMUserLogoff

Syntax

Terminal window
Invoke-LMUserLogoff [-Usernames] <String[]> [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

The Invoke-LMUserLogoff function forces one or more users to be logged out of their LogicMonitor sessions.

Examples

Example 1

Terminal window
#Log off multiple users
Invoke-LMUserLogoff -Usernames "user1", "user2"

Parameters

-Usernames

An array of usernames to log off.

Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None. You cannot pipe objects to this command.

Outputs

Returns a success message if the logoff is completed successfully.

Notes

You must run Connect-LMAccount before running this command.