Portal Management
Portal Settings
# Update portal settingsSet-LMPortalInfo -RequireTwoFA $true -UserSessionTimeoutInMin 60
# Configure whitelistingSet-LMPortalInfo -Whitelist "10.0.0.0/24,192.168.1.0/24"
# Update alert settingsSet-LMPortalInfo -IncludeACKinAlertTotals $true -IncludeSDTinAlertTotals $false
Collector Management
# Update collector configurations$collectors = Get-LMCollector -Filter "status -eq 'running'"foreach ($collector in $collectors) { Set-LMCollectorConfig -Id $collector.id -CollectorSize "medium"}
# Organize collectors into groups$collectors = Get-LMCollector -Filter "description -contains 'prod'"$groupId = (Get-LMCollectorGroup -Name "Production").idforeach ($collector in $collectors) { Set-LMCollector -Id $collector.id -CollectorGroupId $groupId}