Skip to content

Set-LMPortalInfo

Syntax

Terminal window
Set-LMPortalInfo [[-Whitelist] <String>] [-ClearWhitelist] [[-RequireTwoFA] <Boolean>]
[[-IncludeACKinAlertTotals] <Boolean>] [[-IncludeSDTinAlertTotals] <Boolean>]
[[-EnableRemoteSession] <Boolean>] [[-CompanyDisplayName] <String>] [[-UserSessionTimeoutInMin] <Int32>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

The Set-LMPortalInfo function modifies various portal-wide settings in LogicMonitor, including whitelisting, two-factor authentication, alert totals, and session timeouts.

Examples

Example 1

Terminal window
Set-LMPortalInfo -RequireTwoFA $true -UserSessionTimeoutInMin 60 -CompanyDisplayName "My Company"
Updates the portal settings to require 2FA, set session timeout to 60 minutes, and update company display name.

Parameters

-Whitelist

Specifies IP addresses/ranges to whitelist for portal access.

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

-ClearWhitelist

Indicates whether to clear the existing whitelist.

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

-RequireTwoFA

Specifies whether to require two-factor authentication for all users.

Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IncludeACKinAlertTotals

Specifies whether to include acknowledged alerts in alert totals.

Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IncludeSDTinAlertTotals

Specifies whether to include alerts in SDT in alert totals.

Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EnableRemoteSession

Specifies whether to enable remote session functionality.

Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CompanyDisplayName

Specifies the company name to display in the portal.

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

-UserSessionTimeoutInMin

Specifies the session timeout in minutes. Valid values: 30, 60, 120, 240, 480, 1440, 10080, 43200.

Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
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.

Outputs

Returns the response from the API containing the updated portal settings.

Notes

This function requires a valid LogicMonitor API authentication.