<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/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/"><channel><title>2012 Scripting Games Beginner Event 7: Display a List of Enabled Logs</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/10/the-2012-scripting-games-beginner-event-7-display-a-list-of-enabled-logs.aspx</link><description>In Beginner Event 7, you are required to display a list of all enabled logs on the computer that contain at least one entry.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: 2012 Scripting Games Beginner Event 7: Display a List of Enabled Logs</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/10/the-2012-scripting-games-beginner-event-7-display-a-list-of-enabled-logs.aspx#3495155</link><pubDate>Sun, 29 Apr 2012 15:26:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3495155</guid><dc:creator>Scott Alvarino Your Miami Tech Guy</dc:creator><description>&lt;p&gt;Hi Ed, is (Microsoft-Windows-WMI-Activity/Trace) considered a hidden log? (I believe it is) I have tested several scripts with this log enabled and with records in them and it doesn&amp;#39;t appear because people use the (.recordcount) property to be more than 0 but this log doesn&amp;#39;t have a recordcount amount even if it has entries. Even in the Expert Script submitted it doesn&amp;#39;t pick up this log because it doesn&amp;#39;t have a recordcount amount it just is empty. Am I wrong that (Microsoft-Windows-WMI-Activity/Trace) is supposed to be returned as well I made sure I have it enabled?&lt;/p&gt;
&lt;p&gt;thanks for everything Ed.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3495155" width="1" height="1"&gt;</description></item><item><title>re: 2012 Scripting Games Beginner Event 7: Display a List of Enabled Logs</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/10/the-2012-scripting-games-beginner-event-7-display-a-list-of-enabled-logs.aspx#3493026</link><pubDate>Wed, 18 Apr 2012 20:47:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3493026</guid><dc:creator>IamMred</dc:creator><description>&lt;p&gt;@Ratty67 I hate to see you go. This skill is essential for IT Pros on a day to day basis. You can download an eval copy of Windows 7 here &lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/en-us/evalcenter/cc442495"&gt;technet.microsoft.com/.../cc442495&lt;/a&gt; &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3493026" width="1" height="1"&gt;</description></item><item><title>re: 2012 Scripting Games Beginner Event 7: Display a List of Enabled Logs</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/10/the-2012-scripting-games-beginner-event-7-display-a-list-of-enabled-logs.aspx#3493020</link><pubDate>Wed, 18 Apr 2012 20:27:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3493020</guid><dc:creator>ratty67</dc:creator><description>&lt;p&gt;This is where I dropped out of the games. Believe it or not - not everyone has access to a Win7 machine &amp;nbsp;:(&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3493020" width="1" height="1"&gt;</description></item><item><title>re: 2012 Scripting Games Beginner Event 7: Display a List of Enabled Logs</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/10/the-2012-scripting-games-beginner-event-7-display-a-list-of-enabled-logs.aspx#3492558</link><pubDate>Tue, 17 Apr 2012 08:23:51 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3492558</guid><dc:creator>Zak Humphries</dc:creator><description>&lt;p&gt;DOH!! Clicked submit and realized I had left a Measure-Object for debugging at the end of my line..... 1 star :(&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3492558" width="1" height="1"&gt;</description></item><item><title>re: 2012 Scripting Games Beginner Event 7: Display a List of Enabled Logs</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/10/the-2012-scripting-games-beginner-event-7-display-a-list-of-enabled-logs.aspx#3491842</link><pubDate>Thu, 12 Apr 2012 17:24:35 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3491842</guid><dc:creator>IamMred</dc:creator><description>&lt;p&gt;@Daniel-D a onelinner is acceptable, and it is permissible to use aliases in the one linner. If you want to make DOUBLE SURE then include a comment with the &amp;quot;long version&amp;quot; of your command.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3491842" width="1" height="1"&gt;</description></item><item><title>re: 2012 Scripting Games Beginner Event 7: Display a List of Enabled Logs</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/10/the-2012-scripting-games-beginner-event-7-display-a-list-of-enabled-logs.aspx#3491833</link><pubDate>Thu, 12 Apr 2012 16:30:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3491833</guid><dc:creator>Daniel-D</dc:creator><description>&lt;p&gt;Thanks for your answer on my previous question. Have another one for you: Given the &amp;quot;one-liner&amp;quot; design point, are you implying that aliases are acceptable, or will points be deducted if aliases are used since you did not state that they are explicitly acceptable?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3491833" width="1" height="1"&gt;</description></item><item><title>re: 2012 Scripting Games Beginner Event 7: Display a List of Enabled Logs</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/10/the-2012-scripting-games-beginner-event-7-display-a-list-of-enabled-logs.aspx#3491816</link><pubDate>Thu, 12 Apr 2012 16:08:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3491816</guid><dc:creator>IamMred</dc:creator><description>&lt;p&gt;@Get-Exchange No, I am not checking for remote connectivity on this event. Do not return errors from the command. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3491816" width="1" height="1"&gt;</description></item><item><title>re: 2012 Scripting Games Beginner Event 7: Display a List of Enabled Logs</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/10/the-2012-scripting-games-beginner-event-7-display-a-list-of-enabled-logs.aspx#3491811</link><pubDate>Thu, 12 Apr 2012 15:59:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3491811</guid><dc:creator>IamMred</dc:creator><description>&lt;p&gt;@Daniel-D you want logs that are enabled AND have a record entry count that is greater than 0. If there is an enabled log with NO entries in it, then do not display that log. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3491811" width="1" height="1"&gt;</description></item><item><title>re: 2012 Scripting Games Beginner Event 7: Display a List of Enabled Logs</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/10/the-2012-scripting-games-beginner-event-7-display-a-list-of-enabled-logs.aspx#3491810</link><pubDate>Thu, 12 Apr 2012 15:55:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3491810</guid><dc:creator>IamMred</dc:creator><description>&lt;p&gt;@Brad you probably want to add a bit of code to supress the errors. I am not looking for structured error handling, but just something so you get a clean output.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3491810" width="1" height="1"&gt;</description></item><item><title>re: 2012 Scripting Games Beginner Event 7: Display a List of Enabled Logs</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/10/the-2012-scripting-games-beginner-event-7-display-a-list-of-enabled-logs.aspx#3491800</link><pubDate>Thu, 12 Apr 2012 15:46:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3491800</guid><dc:creator>Daniel-D</dc:creator><description>&lt;p&gt;Regarding the following points (below), I see two possible ways to filter (Enabled AND Count &amp;gt; 0) vs (Enabled OR Count &amp;gt; 0). To me, the event scenario leans toward the first (&amp;quot;logs actively record&amp;quot;), but inorder to display all logs with entries, the later would be needed. Does the &amp;quot;enabled only&amp;quot; design point take presidence over the &amp;quot;all logs with entries&amp;quot;? Mr Ed, would you clarify? &lt;/p&gt;
&lt;p&gt;* Your code should display all logs that have entries in them.&lt;/p&gt;
&lt;p&gt;* Your code should display only logs that are enabled.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3491800" width="1" height="1"&gt;</description></item></channel></rss>