<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>musc@&gt; $daniele.work.ToString() - All Comments</title><link>http://blogs.msdn.com/b/dmuscett/</link><description>&amp;quot;Corporate&amp;quot; Blog of Daniele Muscetta, Premier Field Engineer.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Boris’s OpsMgr Tools – Updated</title><link>http://blogs.msdn.com/b/dmuscett/archive/2012/02/19/boris-s-tools-updated.aspx#10418544</link><pubDate>Tue, 14 May 2013 17:22:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10418544</guid><dc:creator>Daniele Muscetta</dc:creator><description>&lt;p&gt;Ok, guys - I gave in to all the comments, and also posted OverrideCreator. Enjoy!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10418544" width="1" height="1"&gt;</description></item><item><title>re: Get-WmiCustom (aka: Get-WMIObject with timeout!)</title><link>http://blogs.msdn.com/b/dmuscett/archive/2009/05/27/get_2D00_wmicustom.aspx#10418530</link><pubDate>Tue, 14 May 2013 16:30:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10418530</guid><dc:creator>Daniele Muscetta</dc:creator><description>&lt;p&gt;@Liam - this function was originally written to work on Powershell v1 - there was no Try/Catch support in Powershell at the time - hence the use of trap for error handling. On v2/3 there will of course be more elegant ways.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10418530" width="1" height="1"&gt;</description></item><item><title>re: Get-WmiCustom (aka: Get-WMIObject with timeout!)</title><link>http://blogs.msdn.com/b/dmuscett/archive/2009/05/27/get_2D00_wmicustom.aspx#10418480</link><pubDate>Tue, 14 May 2013 13:51:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10418480</guid><dc:creator>Liam</dc:creator><description>&lt;p&gt;Ok sorted it at the top of the function I placed:&lt;/p&gt;
&lt;p&gt;$ErrorActionPreference = &amp;quot;Stop&amp;quot; &lt;/p&gt;
&lt;p&gt;Then I wrapped your functions code in a try{} and then used the catch{} to handle the errors as required.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10418480" width="1" height="1"&gt;</description></item><item><title>re: Get-WmiCustom (aka: Get-WMIObject with timeout!)</title><link>http://blogs.msdn.com/b/dmuscett/archive/2009/05/27/get_2D00_wmicustom.aspx#10415410</link><pubDate>Wed, 01 May 2013 16:07:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10415410</guid><dc:creator>Daniele Muscetta</dc:creator><description>&lt;p&gt;@laderio - not sure... either you are passing a wrong server name, or there is a firewall in between.&lt;/p&gt;
&lt;p&gt;@Laurie - Yes I am still around. The BEST solution is to make sure that WMI actually works on all your machines. That way you don&amp;#39;t have to worry about timeouts as data will eventually come. Unfortunately in the past I have seen situations where WMI was broken on some customers machines and I had to run my collection tool on them but was not allowed to fix or modify anything: for me at the time was preferable to collect partial information (and know that some machines were broken) rather than blocking my whole data collection exercise forever...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10415410" width="1" height="1"&gt;</description></item><item><title>re: Get-WmiCustom (aka: Get-WMIObject with timeout!)</title><link>http://blogs.msdn.com/b/dmuscett/archive/2009/05/27/get_2D00_wmicustom.aspx#10415354</link><pubDate>Wed, 01 May 2013 13:14:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10415354</guid><dc:creator>Laurie</dc:creator><description>&lt;p&gt;Hi, very useful little function. I know I&amp;#39;m a few years behind this being posted, so hopefully you&amp;#39;re still around. My question here is, how would I use your function when I need to run a query? this is the get-wmi I&amp;#39;m using... &lt;/p&gt;
&lt;p&gt;$LogFiles = Get-Wmiobject -computername $Server -Query &amp;quot;Select * from CIM_DataFile Where Drive = &amp;#39;$LogDrive&amp;#39; And Path = &amp;#39;$LogQueryPath&amp;#39; And Extension = &amp;#39;log&amp;#39;&amp;quot; | Sort LastModified&lt;/p&gt;
&lt;p&gt;problem is, run time can vary greatly depending on the number of logs which could be anywhere from less than 10 to somewhere in the hundreds of thousands and I can&amp;#39;t have an excessive run time...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10415354" width="1" height="1"&gt;</description></item><item><title>re: Get-WmiCustom (aka: Get-WMIObject with timeout!)</title><link>http://blogs.msdn.com/b/dmuscett/archive/2009/05/27/get_2D00_wmicustom.aspx#10407883</link><pubDate>Fri, 05 Apr 2013 09:01:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10407883</guid><dc:creator>laderio</dc:creator><description>&lt;p&gt;So I stopped the time:&lt;/p&gt;
&lt;p&gt;First timeout message after 20 seconds.&lt;/p&gt;
&lt;p&gt;Second timeout message after another 20 seconds.&lt;/p&gt;
&lt;p&gt;Exception calling &amp;quot;Connect&amp;quot; with &amp;quot;0&amp;quot; argument(s): &amp;quot;The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)&amp;quot;&lt;/p&gt;
&lt;p&gt;At line:9 char:5&lt;/p&gt;
&lt;p&gt;+ &amp;nbsp; &amp;nbsp; $Scope.Connect()&lt;/p&gt;
&lt;p&gt;+ &amp;nbsp; &amp;nbsp; ~~~~~~~~~~~~~~~~&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;+ CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: NotSpecified: (:) [], MethodInvocationException&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;+ FullyQualifiedErrorId : COMException&lt;/p&gt;
&lt;p&gt;Exception calling &amp;quot;Get&amp;quot; with &amp;quot;0&amp;quot; argument(s): &amp;quot;The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)&amp;quot;&lt;/p&gt;
&lt;p&gt;At line:17 char:17&lt;/p&gt;
&lt;p&gt;+ &amp;nbsp; &amp;nbsp; trap { $_ } $result = $searcher.get()&lt;/p&gt;
&lt;p&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;+ CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: NotSpecified: (:) [], MethodInvocationException&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;+ FullyQualifiedErrorId : COMException&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10407883" width="1" height="1"&gt;</description></item><item><title>re: Boris’s OpsMgr Tools – Updated</title><link>http://blogs.msdn.com/b/dmuscett/archive/2012/02/19/boris-s-tools-updated.aspx#10404426</link><pubDate>Fri, 22 Mar 2013 03:53:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10404426</guid><dc:creator>Daniele Muscetta</dc:creator><description>&lt;p&gt;Jon - MPviewer has had some limited command line support for years, but only for HTML export.&lt;/p&gt;
&lt;p&gt;All you have to pass is the full path to the MP file as first parameter, and the full path of the HTML file as second one, i.e.&lt;/p&gt;
&lt;p&gt;C:\MPViewer.exe &amp;quot;C:\SampleMP.mp&amp;quot; &amp;quot;C:\SampleMPReport.html&amp;quot;&lt;/p&gt;
&lt;p&gt;The way this is done in the code is a little bit hacky at the moment, and would require some amount of refactoring to make it more elegant and support both HTML and/or Excel. I have been thinking about it but haven&amp;#39;t had time to improve it that way.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10404426" width="1" height="1"&gt;</description></item><item><title>re: Boris’s OpsMgr Tools – Updated</title><link>http://blogs.msdn.com/b/dmuscett/archive/2012/02/19/boris-s-tools-updated.aspx#10404425</link><pubDate>Fri, 22 Mar 2013 03:42:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10404425</guid><dc:creator>Jon Sykes</dc:creator><description>&lt;p&gt;Hey Daniele, thanks for your work on updating these tools. &amp;nbsp;They are very helpful.&lt;/p&gt;
&lt;p&gt;I am wondering if mpviewer 2.2.1 has command line support? &amp;nbsp;It doesn&amp;#39;t appear to however I just wanted confirmation because I have a specific need to export a lot of MPs to excel for different customers.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10404425" width="1" height="1"&gt;</description></item><item><title>re: OpsMgr Event IDs Spreadsheet</title><link>http://blogs.msdn.com/b/dmuscett/archive/2010/06/23/opsmgr_2D00_event_2D00_ids_2D00_spreadsheet.aspx#10394211</link><pubDate>Sat, 16 Feb 2013 05:51:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10394211</guid><dc:creator>Daniele Muscetta</dc:creator><description>&lt;p&gt;Mayson - I compiled this list 3 years ago... I know it does not include several event sources, like the cross-platform ones. Also, new event ID&amp;#39;s and sources have probably been added or could have changed with cumulative updates or add-ons, connectors and what not. Surely many of these are also different in OpsMgr 2012. I am not sure what event you are looking for: just an EventID without an EventSource/Publisher tells me very little, and I don&amp;#39;t have access to 2007R2 systems anymore to go and dig more recent info out.... I would encourage you to use EventLog Explorer yourself - it&amp;#39;s linked in the post.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10394211" width="1" height="1"&gt;</description></item><item><title>re: OpsMgr Event IDs Spreadsheet</title><link>http://blogs.msdn.com/b/dmuscett/archive/2010/06/23/opsmgr_2D00_event_2D00_ids_2D00_spreadsheet.aspx#10393893</link><pubDate>Fri, 15 Feb 2013 08:39:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10393893</guid><dc:creator>Mayson_A</dc:creator><description>&lt;p&gt;Great doc to have. However there is no event for the following: 18930&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10393893" width="1" height="1"&gt;</description></item></channel></rss>