Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bookmarking doesnt seem to work as expected #2

Open
kayasax opened this issue Jul 27, 2018 · 0 comments
Open

Bookmarking doesnt seem to work as expected #2

kayasax opened this issue Jul 27, 2018 · 0 comments

Comments

@kayasax
Copy link

kayasax commented Jul 27, 2018

Hi Jessica, thank you very much for your blog and this repo, I've dicovered them 2 days ago and learned a lot of new things!

I'm trying to use weffles to send an email alert when a user is added to some admin groups .

Event forwarding is working, the eventwatcher is in place, the email is fire when the groups get modified ... but when I stop/restart the schedule task I'm receiving emails for events that were already processed !

I was thinking we have to update the bookmark in the action block of the register-eventRecordWrittenEvent , so I tried this :

import-module "c:\weffles\EventLogWatcher.psm1"
$EventBookmark=$EventRecord.Bookmark
Export-SerializedStream $EventBookmark "c:\weffles\bookmark.stream"

but doesnt seem to work neither :(

Do you have any help to offer on this subject please ?

BTW I think there is some things missing in your script : the hashtable you create for specific events are never used ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant