<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'JScript EventLogInputFormat resolveSIDs'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=JScript+EventLogInputFormat+resolveSIDs&amp;orTags=0</link><description>Search results matching tag 'JScript EventLogInputFormat resolveSIDs'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: RE: Resolve SID &amp;amp; FS input</title><link>http://forums.iis.net/p/1145050/1876127.aspx#1876127</link><pubDate>Thu, 07 Aug 2008 07:15:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1876127</guid><dc:creator>cvengelen</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;p&gt;[quote user=&amp;quot;Anonymous&amp;quot;] 
&lt;p&gt;Regarding Jr&amp;#39;s problem: try with &amp;quot;oEVTInputFormat.resolveSIDs = True&amp;quot;. When you say it doesn&amp;#39;t work, what do you mean? Does CScript give you an error, or just you don&amp;#39;t see SID&amp;#39;s being resolved? 
&lt;p&gt;[/quote]&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using JScript to execute a query on Security event logs, and use the following lines to resolve the SID&amp;#39;s (taken from the Log Parser Help file):&lt;/p&gt;
&lt;p&gt;//Create EventLog input format&lt;br /&gt;var objEventLogInputFormat = new ActiveXObject( &amp;quot;MSUtil.LogQuery.EventLogInputFormat&amp;quot; );&lt;br /&gt;// Resolve SIDs&lt;br /&gt;objEventLogInputFormat.resolveSIDs = true;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;However, this does not work, since the SID in my output is not resolved. I use the followinq query:&lt;/p&gt;
&lt;p&gt;SELECT RecordNumber, SourceName, TimeGenerated, SID, ComputerName, EXTRACT_TOKEN(Strings, 13, &amp;#39;|&amp;#39;) as SourceNetworkAddress, Message&amp;nbsp; FROM R:\temp\LogQueryWorkDir\Security.2008-07-02-16-50-42.evt WHERE eventID = 528&amp;nbsp; ORDER BY RecordNumber, TimeGenerated&lt;/p&gt;
&lt;p&gt;and the output , which I generate with the toNativeString method, still shows the SID unresolved I removed everything after the SID for safety):&lt;/p&gt;
&lt;p&gt;7, Security, 2008-07-02 10:16:22, S-1-5-21-2046926873-3586635073-1646930892-2756, ......&lt;/p&gt;
&lt;p&gt;Is this caused by using the&amp;nbsp;&amp;nbsp;toNativeString method?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>