< Back

Add-FirefoxBookmark

Sun Jan 19, 2020 6:16 pm

NAME Add-FirefoxBookmark



SYNOPSIS

Adds a new bookmark to the specified Firefox bookmarks database.





SYNTAX

Add-FirefoxBookmark -Bookmark <BrowserBookmark[]> [-DefaultProfile <SwitchParameter>] [-ExcludeFolders

<SwitchParameter>] [-BackupTarget <SwitchParameter>] [-BackupPath <String>] [<CommonParameters>]



Add-FirefoxBookmark -Bookmark <BrowserBookmark[]> [-TargetFile <String>] [-ExcludeFolders <SwitchParameter>]

[-BackupTarget <SwitchParameter>] [-BackupPath <String>] [<CommonParameters>]





DESCRIPTION

Adds the bookmarks passed as parameter or from the pipeline to the specified Firefox bookmark database. If the

specified database does not exist it will be created from an empty template.





PARAMETERS

-Bookmark <BrowserBookmark[]>

The mandatory array of BrowserBookmark objects to add to the database.



Required? true

Position? named

Default value

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-DefaultProfile [<SwitchParameter>]

If specified, the Cmdlet will look for the default Bookmark file location in the current user's profile.



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-ExcludeFolders [<SwitchParameter>]

If specified, all bookmarks will be added to the Bookmark Bar, regardless of the original folder path.



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-BackupTarget [<SwitchParameter>]

If specified, the Cmdlet will backup the target database to a zip archive.



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-BackupPath <String>

Full path to the folder where the backup file will be created. Must resolve to a valid file specifier. Path

must exist.



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-TargetFile <String>

Full path to the target file. Must resolve to a valid file specifier.



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

BrowserBookmark[]







OUTPUTS

BookmarkOperationResult







EXAMPLE 1



Creates a bookmark object for the metaBPA homepage and adds it to the default Chrome bookmark file. Creates a

backup before altering the file.C:\\PS> New-BrowserBookmark -URL 'https://metabpa.org' -Title 'Make on-premises

great again!' | Add-FirefoxBookmark -DefaultProfile -BackupTarget -BackupPath c:\\temp





EXAMPLE 2



Adds all Chrome bookmarks from the default file to the Firefox bookmark database c:\\temp\\bookmarks.sqlite.C:\\PS>

Get-ChromeBookmark -DefaultProfile | Add-FirefoxBookmark -TargetFile c:\\temp\\bookmarks.sqlite







RELATED LINKS

Online Version: https://metabpa.org/projects/psbrowserb ... xbookmark/