Export-HtmlBrowserSession
August 3, 2026 ยท View on GitHub
SYNOPSIS
Cmdlet that saves cookies and storage state of a browser session to disk.
SYNTAX
__AllParameterSets
Export-HtmlBrowserSession [-Session] <HtmlBrowserSession> [-Path] <string> [-CancellationToken <CancellationToken>] [<CommonParameters>]
DESCRIPTION
Cmdlet that saves cookies and storage state of a browser session to disk.
EXAMPLES
EXAMPLE 1
Export-HTMLSession -Session $session -Path session.json
PARAMETERS
-CancellationToken
Token used to cancel the operation.
Type: CancellationToken
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Path
Path for the exported session state file.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Session
Browser session to export.
Type: HtmlBrowserSession
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
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
HtmlTinkerX.HtmlBrowserSession
OUTPUTS
None
RELATED LINKS
- None