< Back

Add-IEBookmark

Sun Jan 19, 2020 6:16 pm

NAME Add-IEBookmark



SYNOPSIS

Adds a new bookmark to the specified Internet Explorer favorites folder.





SYNTAX

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

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



Add-IEBookmark -Bookmark <BrowserBookmark[]> [-TargetFolder <String>] [-ExcludeFolders <SwitchParameter>]

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





DESCRIPTION

Adds one or multiple bookmarks to either the default Favorites path of the current user or to a specified folder.





PARAMETERS

-Bookmark <BrowserBookmark[]>

Array of BrowserBookmark objects to add.



Required? true

Position? named

Default value

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-DefaultProfile [<SwitchParameter>]

The bookmarks are added to the default Favorites folder of the current user. Mutually exclusive with

-TargetFolder.



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-ExcludeFolders [<SwitchParameter>]

If specified, path information is stripped from the input objects.



Required? false

Position? named

Default value

Accept pipeline input? False

Accept wildcard characters? false



-BackupTarget [<SwitchParameter>]

If specified, a backup of the target folder is created as a ZIP archive before adding the bookmarks.



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



-TargetFolder <String>

The bookmarks are added to the folder specified. Mutually exclusive with -DefaultProfile.



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



Adds IE bookmarks from a previous backup to the default Favorites folder, discarding the folder structure.C:\\PS>

Get-IEBookmark -SourceFolder "C:\\Backup\\IE" | Add-IEBookmark -DefaultProfile -BackupTarget -ExcludeFolders







RELATED LINKS

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