Add-ChromeBookmark

Add-ChromeBookmark 
    -Bookmark 
    -DefaultProfile
    [-ExcludeFolders ]
    [-BackupTarget ]
    [-BackupPath ]
Add-ChromeBookmark 
    -Bookmark 
    -TargetFile
    [-ExcludeFolders ]
    [-BackupTarget ]
    [-BackupPath ]

Description

Adds the bookmarks passed as parameter or from the pipeline to the specified Chrome bookmark file. If the file does not exist it will be created from an empty template.

Examples

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

New-BrowserBookmark -URL 'https://metabpa.org' -Title 'Make on-premises great again!' |
    Add-ChromeBookmark -DefaultProfile -BackupTarget -BackupPath c:\temp

Adds all Firefox bookmarks from the default database to the Chrome bookmark file c:\temp\mybookmark.

Get-FirefoxBookmark -DefaultProfile | Add-ChromeBookmark -TargetFile c:\temp\mybookmark

Parameters

-Bookmark

[BrowserBookmark[]]

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

-DefaultProfile

[switch]

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

-ExcludeFolders

[switch]

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

-TargetFile

[string]

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

-BackupTarget

[switch]

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

-BackupPath

[string]

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

Input

An array of BrowserBookmark objects.

Output

A single BookmarkOperationResult object.

[ back to module ]