G
Guest
Hi All,
I need help with ReplacementStrings on EventLog messages.
The question is: How to replace things such %{SID} and %{GUID} inside
EventLogEntry.Message?
When the case is %{SID}, I solved by using SecurityIdentifier and
IdentityReference classes. But when the case is %{GUID}, few times I have
lucky with the DirectorySearcher class by converting the GUID to NativeGuid
format. However, almost times I have null results.
I think that this way is far from the correct way to deal with this problem.
But I don't know how.
Thanks in Advance
Washington Moreira
I need help with ReplacementStrings on EventLog messages.
The question is: How to replace things such %{SID} and %{GUID} inside
EventLogEntry.Message?
When the case is %{SID}, I solved by using SecurityIdentifier and
IdentityReference classes. But when the case is %{GUID}, few times I have
lucky with the DirectorySearcher class by converting the GUID to NativeGuid
format. However, almost times I have null results.
I think that this way is far from the correct way to deal with this problem.
But I don't know how.
Thanks in Advance
Washington Moreira
