Skip to main content

Synopsis

Retrieves proxy settings from the installed Automate agent’s registry. If no agent is found, falls back to discovering the system proxy settings. The resolved configuration is stored in module memory and used for all subsequent module operations during the current session.

Syntax

Get-LTProxy [<CommonParameters>]

Parameters

This cmdlet has no additional parameters beyond the common PowerShell parameters (-Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable).

Return value

Returns an object with the following properties:
PropertyTypeDescription
ProxyServerURLstringThe proxy server URL (e.g. http://proxy.domain.com:8080)
ProxyUsernamestringProxy authentication username
ProxyPasswordstringProxy authentication password
EnabledboolWhether a proxy is currently active

Examples

Retrieve and display the current proxy configuration:
Get-LTProxy

Build docs developers (and LLMs) love