< Back
Add-ChromeBookmark
Post
NAME Add-ChromeBookmark
SYNOPSIS
Adds a new bookmark to the specified Chrome bookmarks file.
SYNTAX
Add-ChromeBookmark -Bookmark <BrowserBookmark[]> [-DefaultProfile <SwitchParameter>] [-ExcludeFolders
<SwitchParameter>] [-BackupTarget <SwitchParameter>] [-BackupPath <String>] [<CommonParameters>]
Add-ChromeBookmark -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 Chrome bookmark file. If the file
does not exist it will be created from an empty template.
PARAMETERS
-Bookmark <BrowserBookmark[]>
The mandatory array of BrowserBookmark objects to add to the file.
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 file 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-ChromeBookmark -DefaultProfile -BackupTarget -BackupPath c:\\temp
EXAMPLE 2
Adds all Firefox bookmarks from the default database to the Chrome bookmark file c:\\temp\\mybookmark.C:\\PS>
Get-FirefoxBookmark -DefaultProfile | Add-ChromeBookmark -TargetFile c:\\temp\\mybookmark
RELATED LINKS
Online Version: https://metabpa.org/projects/psbrowserb ... ebookmark/
SYNOPSIS
Adds a new bookmark to the specified Chrome bookmarks file.
SYNTAX
Add-ChromeBookmark -Bookmark <BrowserBookmark[]> [-DefaultProfile <SwitchParameter>] [-ExcludeFolders
<SwitchParameter>] [-BackupTarget <SwitchParameter>] [-BackupPath <String>] [<CommonParameters>]
Add-ChromeBookmark -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 Chrome bookmark file. If the file
does not exist it will be created from an empty template.
PARAMETERS
-Bookmark <BrowserBookmark[]>
The mandatory array of BrowserBookmark objects to add to the file.
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 file 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-ChromeBookmark -DefaultProfile -BackupTarget -BackupPath c:\\temp
EXAMPLE 2
Adds all Firefox bookmarks from the default database to the Chrome bookmark file c:\\temp\\mybookmark.C:\\PS>
Get-FirefoxBookmark -DefaultProfile | Add-ChromeBookmark -TargetFile c:\\temp\\mybookmark
RELATED LINKS
Online Version: https://metabpa.org/projects/psbrowserb ... ebookmark/