NAME
Get-BookmarkToStartFrom

SYNOPSIS
Gets a previously serialized EventBookmark object at the location specified.

SYNTAX
Get-BookmarkToStartFrom [[-BookmarkStreamPath] <String[]>] [<CommonParameters>]


DESCRIPTION
The Get-BookmarkToStartFrom function gets a previously serialized EventBookmark
[System.Diagnostics.Eventing.Reader.EventBookmark] object from the location specified.

The returned EventBookmark can be used as a placeholder to resume an EventLogWatcher from where it left off.


PARAMETERS
-BookmarkStreamPath <String[]>
Full path and filename for the serialized object input file.

DEFAULT = '.\bookmark.stream'

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters?

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".


-------------------------- EXAMPLE 1 --------------------------

C:\PS>$EventBookmark = Get-BookmarkToStartFrom


Description
-----------
This example returns a previously serialized EventBookmark object from the default location ".\bookmark.stream"





-------------------------- EXAMPLE 2 --------------------------

C:\PS>$EventBookmark = Get-BookmarkToStartFrom "C:\EventLogWatchers\Application\App_bookmark.stream"


Description
-----------
This example returns a previously serialized EventBookmark object from
"C:\EventLogWatchers\Application\App_bookmark.stream"


Last edited Jun 16, 2011 at 3:13 PM by sgrinker, version 3

Comments

No comments yet.