ConvertFrom-HtmlForm
August 3, 2026 ยท View on GitHub
SYNOPSIS
Extracts HTML form information into PowerShell objects.
SYNTAX
Content (Default)
ConvertFrom-HtmlForm -Content <string> [-IncludeMetadata] [-Proxy <string>] [-ProxyCredential <pscredential>] [<CommonParameters>]
Url
ConvertFrom-HtmlForm -Url <uri> [-IncludeMetadata] [-Proxy <string>] [-ProxyCredential <pscredential>] [<CommonParameters>]
DESCRIPTION
Extracts HTML form information into PowerShell objects.
EXAMPLES
EXAMPLE 1
ConvertFrom-HtmlForm -Url https://example.com
PARAMETERS
-Content
HTML content containing forms.
Type: String
Parameter Sets: Content
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue, ByPropertyName)
Accept wildcard characters: False
-IncludeMetadata
Include additional metadata like form index and CSS classes.
Type: SwitchParameter
Parameter Sets: Content, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Proxy
Proxy server address for downloading when using Url.
Type: String
Parameter Sets: Content, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProxyCredential
Credentials for the proxy server.
Type: PSCredential
Parameter Sets: Content, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Url
URL of a page with forms.
Type: Uri
Parameter Sets: Url
Aliases: Uri
Possible values:
Required: True
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
System.String
OUTPUTS
System.Management.Automation.PSObject
RELATED LINKS
- None