<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://myitforum.com/cs2/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Don Hite</title><subtitle type="html">&lt;div align="center"&gt;
&lt;font color="Blue"&gt;Select Distinct&lt;/font&gt;
&lt;font color="deeppink"&gt;DateAdd&lt;/font&gt;
&lt;font color="Gray"&gt;(D,+1,&lt;/font&gt; 
&lt;font color="deeppink"&gt;GetDate&lt;/font&gt;
&lt;font color="Gray"&gt;()) &lt;/font&gt;
&lt;font color="Red"&gt;&amp;#39;Be Sure To Come Back Then too!&amp;#39;&lt;/font&gt;
&lt;/div&gt;</subtitle><id>http://myitforum.com/cs2/blogs/dhite/atom.aspx</id><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/default.aspx" /><link rel="self" type="application/atom+xml" href="http://myitforum.com/cs2/blogs/dhite/atom.aspx" /><generator uri="http://communityserver.org" version="3.1.20917.1142">Community Server</generator><updated>2008-08-17T15:29:29Z</updated><entry><title>VBS Script To Export ConfigMgr Views To A Word Document</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/vbs-script-to-export-configmgr-views-to-a-word-document.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/vbs-script-to-export-configmgr-views-to-a-word-document.aspx</id><published>2008-09-07T17:26:16Z</published><updated>2008-09-07T17:26:16Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;This Vbs script will take a Site server name and site code from an input box and then enumerate all of theViews on that server. It will then add them to a Microsoft Word document that you can save for future reference.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;VBS Script:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;strServer = InputBox (&lt;span style="COLOR:maroon;"&gt;&amp;quot;Enter Site Server Name&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;strDatabase = InputBox (&lt;span style="COLOR:maroon;"&gt;&amp;quot;Enter Three Letter Site Code&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objWord = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Word.Application&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objWord.Visible = &lt;span style="COLOR:blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objOptions = objWord.Options&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objOptions.CheckSpellingAsYouType = &lt;span style="COLOR:blue;"&gt;False&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; wdAlignParagraphCenter = 1&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; wdAlignParagraphLeft = 0&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; wdColorGreen = 32768&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; wdColorBlue = 16711680 &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; wdColorBlack = 0&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; wdColorGray = 15132390&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objDoc = objWord.Documents.Add()&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objSelection = objWord.Selection&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.Font.Bold = &lt;span style="COLOR:blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.Font.Color = wdColorGreen&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.ParagraphFormat.Alignment = wdAlignParagraphCenter &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeText &lt;span style="COLOR:maroon;"&gt;&amp;quot;SQL Views&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.Font.Bold = &lt;span style="COLOR:blue;"&gt;False&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeParagraph()&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeText &lt;span style="COLOR:maroon;"&gt;&amp;quot;Report Created: &amp;quot;&lt;/span&gt; &amp;amp; &lt;span style="COLOR:blue;"&gt;Date&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeParagraph()&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeParagraph()&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.ParagraphFormat.Alignment = wdAlignParagraphLeft&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; adOpenStatic = 3&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; adLockOptimistic = 3&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objConnection = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;ADODB.Connection&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objConnection.Open &lt;span style="COLOR:maroon;"&gt;&amp;quot;Provider=SQLOLEDB;Data Source =&amp;quot;&lt;/span&gt; &amp;amp; strServer &amp;amp; &lt;span style="COLOR:maroon;"&gt;&amp;quot;;&amp;quot;&lt;/span&gt; &amp;amp; _&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;quot;Trusted_Connection=Yes;Initial Catalog =SMS_&amp;quot;&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &amp;amp; strDatabase &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objRecordSet = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;ADODB.Recordset&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objRecordSet.Open &lt;span style="COLOR:maroon;"&gt;&amp;quot;Select Table_Name, View_Definition&amp;quot;&lt;/span&gt; &amp;amp; _ &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;quot; From Information_Schema.Views&amp;quot;&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &amp;amp; _&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;quot; Order By Table_Name&amp;quot;&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;, objConnection, adOpenStatic, adLockOptimistic&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objRecordSet.MoveFirst&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Do&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;Until&lt;/span&gt; objRecordSet.EOF&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.ParagraphFormat.Alignment = wdAlignParagraphCenter &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.Font.Color = wdColorBlue&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.Font.Bold = &lt;span style="COLOR:blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.ParagraphFormat.Shading.BackgroundPatternColor = wdColorGray&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeText &lt;span style="COLOR:maroon;"&gt;&amp;quot;&amp;quot;&lt;/span&gt; &amp;amp; objRecordset.Fields.Item(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Table_Name&amp;quot;&lt;/span&gt;).Value &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeParagraph()&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeParagraph()&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.ParagraphFormat.Alignment = wdAlignParagraphLeft&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.Font.Color = wdColorBlack&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.Font.Bold = &lt;span style="COLOR:blue;"&gt;False&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeText &lt;span style="COLOR:maroon;"&gt;&amp;quot;&amp;quot;&lt;/span&gt; &amp;amp; objRecordset.Fields.Item(&lt;span style="COLOR:maroon;"&gt;&amp;quot;View_Definition&amp;quot;&lt;/span&gt;).Value &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeParagraph()&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeParagraph()&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objRecordSet.MoveNext&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Loop&lt;/span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.ParagraphFormat.Alignment = wdAlignParagraphCenter &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.Font.Color = wdColorGreen&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeText &lt;span style="COLOR:maroon;"&gt;&amp;quot;Created by Don Hite For myITforum.Com&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objSelection.TypeParagraph()&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122139" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="Vbs Scripts" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/Vbs+Scripts/default.aspx" /></entry><entry><title>VBS Script To Replace A Specified Text String In A Text Based File</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/vbs-script-to-replace-a-specified-text-string-in-a-text-based-file.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/vbs-script-to-replace-a-specified-text-string-in-a-text-based-file.aspx</id><published>2008-09-07T17:25:51Z</published><updated>2008-09-07T17:25:51Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;This VBS Script will allow you to browse for a text based file and will open the file and replace the specified text with a string that you specify and then resave the file using text boxes.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;VBS Script:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;strOriginalString = InputBox (&lt;span style="COLOR:maroon;"&gt;&amp;quot;Replace This Text&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:green;mso-no-proof:yes;"&gt;&amp;#39;strOriginalString = &amp;quot;The Text To Replace.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;strNewStringValue = InputBox (&lt;span style="COLOR:maroon;"&gt;&amp;quot;With This Text&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:green;mso-no-proof:yes;"&gt;&amp;#39;strNewStringValue = &amp;quot;The Text To Change It To.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:green;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; ForReading = 1&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; ForWriting = 2&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; objDialog = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;UserAccounts.CommonDialog&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objDialog.Filter = &lt;span style="COLOR:maroon;"&gt;&amp;quot;All Files|*.*&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objDialog.InitialDir = &lt;span style="COLOR:maroon;"&gt;&amp;quot;C:\&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;intResult = objDialog.ShowOpen&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; objFSO = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Scripting.FileSystemObject&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; objFile = objFSO.OpenTextFile(objDialog.FileName, ForReading)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;strFileName = objFile.ReadAll&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objFile.Close&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objTextReplace = Replace(strFileName, strOriginalString, strNewStringValue)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; objFile = objFSO.OpenTextFile(objDialog.FileName, ForWriting)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objFile.WriteLine objTextReplace&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objFile.Close&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-no-proof:yes;"&gt;MsgBox &lt;span style="COLOR:maroon;"&gt;&amp;quot;Done&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122138" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="Vbs Scripts" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/Vbs+Scripts/default.aspx" /></entry><entry><title>VBS Script To Send CD-ROM Drive Information To Excel From A List Of Machines</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/vbs-script-to-send-cd-rom-drive-information-to-excel-from-a-list-of-machines.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/vbs-script-to-send-cd-rom-drive-information-to-excel-from-a-list-of-machines.aspx</id><published>2008-09-07T17:25:27Z</published><updated>2008-09-07T17:25:27Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;This VBS Script will send CD-ROM drive information to excel from a list of machine names in a file called MachineList.Txt&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;VBS Script:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objExcel = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Excel.Application&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Visible = &lt;span style="COLOR:blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Workbooks.Add&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;intRow = 2&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(1, 1).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;System Name&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(1, 2).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;Drive Letter&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(1, 3).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;Name&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(1, 4).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;Manufacturer&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; Fso = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Scripting.FileSystemObject&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; InputFile = fso.OpenTextFile(&lt;span style="COLOR:maroon;"&gt;&amp;quot;MachineList.Txt&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Do&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;While&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Not&lt;/span&gt; (InputFile.atEndOfStream)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;strComputer = InputFile.ReadLine&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objWMIService = GetObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;winmgmts:\\&amp;quot;&lt;/span&gt; &amp;amp; strComputer &amp;amp; &lt;span style="COLOR:maroon;"&gt;&amp;quot;\root\cimv2&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; colItems = objWMIService.ExecQuery(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Select * from Win32_CDROMDrive&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;For&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;Each&lt;/span&gt; objItem &lt;span style="COLOR:blue;"&gt;in&lt;/span&gt; colItems&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(intRow, 1).Value = objItem.SystemName&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(intRow, 2).Value = objItem.Drive&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(intRow, 3).Value = objItem.Name&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(intRow, 4).Value = objItem.Manufacturer&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;intRow = intRow + 1&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Next&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Loop&lt;/span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Range(&lt;span style="COLOR:maroon;"&gt;&amp;quot;A1:D1&amp;quot;&lt;/span&gt;).Select&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Selection.Interior.ColorIndex = 19&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Selection.Font.ColorIndex = 11&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Selection.Font.Bold = &lt;span style="COLOR:blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells.EntireColumn.AutoFit&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:green;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;#39;Set objSheet = objExcel.ActiveWorkbook.Worksheets(1)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:green;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;#39;Set objRange = objExcel.Range(&amp;quot;B2&amp;quot;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:green;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;#39;objRange.Sort objRange,1,,,,,,1&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:green;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;MsgBox &lt;span style="COLOR:maroon;"&gt;&amp;quot;Done&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122137" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="Vbs Scripts" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/Vbs+Scripts/default.aspx" /></entry><entry><title>SQL Query To List Advertisements For A Specified Collection</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/sql-query-to-list-advertisements-for-a-specified-collection.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/sql-query-to-list-advertisements-for-a-specified-collection.aspx</id><published>2008-09-07T17:25:00Z</published><updated>2008-09-07T17:25:00Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;This SQL Query will list all of the Advertisements and their corresponding Advertisement ID&amp;rsquo;s for a specified collection name such as &amp;lsquo;All Client Systems&amp;rsquo;. &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;SQL Query:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Select&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;A&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;AdvertisementName&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;A&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;AdvertisementID&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;From&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; v_Collection C&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:gray;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Join&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; v_Advertisement A &lt;span style="COLOR:blue;"&gt;On&lt;/span&gt; C&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;CollectionID &lt;span style="COLOR:gray;"&gt;=&lt;/span&gt; A&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;CollectionID&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Where&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; C&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;Name&lt;/span&gt; &lt;span style="COLOR:gray;"&gt;=&lt;/span&gt; &lt;span style="COLOR:red;"&gt;&amp;#39;CollectionName&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Order&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;By&lt;/span&gt; A&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;AdvertisementName&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122136" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="SQL Queries" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/SQL+Queries/default.aspx" /></entry><entry><title>SQL Query To Filter Out Clients With Invalid System Enclosure Asset Tag Information</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/sql-query-to-filter-out-clients-with-invalid-system-enclosure-asset-tag-information.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/sql-query-to-filter-out-clients-with-invalid-system-enclosure-asset-tag-information.aspx</id><published>2008-09-07T17:24:47Z</published><updated>2008-09-07T17:24:47Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;This SQL Query will filter out all of the invalid system enclosure asset tags using NOT NULL, Not Like (&amp;lt;&amp;gt;) and NOT IN SQL commands.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;SQL Query:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Select&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;SD&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;Name0 &lt;span style="COLOR:red;"&gt;&amp;#39;Machine Name&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;SD&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;User_Name0 &lt;span style="COLOR:red;"&gt;&amp;#39;User Name&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;SE&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;SmBiosAssetTag0 &lt;span style="COLOR:red;"&gt;&amp;#39;Asset Tag&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:red;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;From&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; v_R_System SD&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:gray;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Join&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; v_GS_System_Enclosure SE &lt;span style="COLOR:blue;"&gt;On&lt;/span&gt; SD&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;ResourceID &lt;span style="COLOR:gray;"&gt;=&lt;/span&gt; SE&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;ResourceID&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Where&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; SD&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;Client0 &lt;span style="COLOR:gray;"&gt;=&lt;/span&gt; &lt;span style="COLOR:red;"&gt;&amp;#39;1&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:gray;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;And&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; SE&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;SmBiosAssetTag0 &lt;span style="COLOR:gray;"&gt;Is&lt;/span&gt; &lt;span style="COLOR:gray;"&gt;Not&lt;/span&gt; &lt;span style="COLOR:gray;"&gt;Null&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:gray;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;And&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; SE&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;SmBiosAssetTag0 &lt;span style="COLOR:gray;"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span style="COLOR:red;"&gt;&amp;#39;%ÿ%&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:gray;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;And&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; SE&lt;span style="COLOR:gray;"&gt;.&lt;/span&gt;SmBiosAssetTag0 &lt;span style="COLOR:gray;"&gt;not&lt;/span&gt; &lt;span style="COLOR:gray;"&gt;in&lt;/span&gt; &lt;span style="COLOR:gray;"&gt;(&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&amp;#39;Not Available&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt; &lt;span style="COLOR:red;"&gt;&amp;#39;No Asset Information&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;,&lt;/span&gt;&lt;span style="COLOR:red;"&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span style="COLOR:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:gray;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122135" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="SQL Queries" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/SQL+Queries/default.aspx" /></entry><entry><title>Apple Polisher</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/apple-polisher.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/apple-polisher.aspx</id><published>2008-09-07T17:24:13Z</published><updated>2008-09-07T17:24:13Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;In the 1920&amp;rsquo;s it was a custom for school children to bring the teacher in some fruit in the mornings and the most popular was an apple. Bringing in an apple was thought to have put the teachers favor on you for the day. It was not uncommon for the teacher to have several apples on their desk and the shiniest apple usually caught their eye.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;To make the apple shiny it had to be polished or wiped clean with a damp rag and out of this came the term &amp;ldquo;Apple Polisher&amp;rdquo; to imply that someone wants to gain someone&amp;rsquo;s favor.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122134" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="Origins" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/Origins/default.aspx" /></entry><entry><title>The Great BigFoot Hoax Of 2008</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/the-great-bigfoot-hoax-of-2008.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/the-great-bigfoot-hoax-of-2008.aspx</id><published>2008-09-07T17:23:51Z</published><updated>2008-09-07T17:23:51Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;My Grandson was all excited when he called and told me that CNN had Bigfoot corpse pictures on the air a few weeks ago and told me to turn it on and watch. I watched the story as a skeptic would and I must admit it did look kind of cool but I had my doubts. &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;a href="http://www.cnn.com/2008/US/08/15/bigfoot.body"&gt;http://www.cnn.com/2008/US/08/15/bigfoot.body&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;Then the &amp;lsquo;Rest of the story&amp;rsquo; was told and the truth was out. They lied about it and claimed that it was a joke that just got out of hand.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;a href="http://www.cnn.com/2008/US/08/21/bigfoot.hoax/index.html?iref=newssearch"&gt;http://www.cnn.com/2008/US/08/21/bigfoot.hoax/index.html?iref=newssearch&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;My guess is that all of the &amp;lsquo;Serious&amp;rsquo; Bigfoot trackers are not too happy with the press coverage and I cannot say that I blame them at all. I will give them credit for their dedication to attempt to prove their existence but I am afraid they are going to be disappointed in the end. After this latest stunt I doubt that any respectable news agency will ever air any more Bigfoot news because they have cried &amp;ldquo;Wolf&amp;rdquo; way too many times. &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;On the other hand there is so much that we still don&amp;rsquo;t know about our world since not all of the planet has been explored and anything is possible. There are still some parts of the earth&amp;rsquo;s surface that have been mapped yet not explored and new animal species and subspecies are discovered on a regular basis. The ocean may be the next place we get &amp;lsquo;Monster&amp;rsquo; reports from as we begin exploring it in earnest because only 5% of it has been explored. &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;In east Africa in the 1800&amp;rsquo;s as the population began growing and the inhabitants were seeking new hunting grounds and places to live there were reports of Bigfoot type &amp;ldquo;Monsters&amp;rdquo; among the natives. These &amp;ldquo;Monsters&amp;rdquo; were manlike and some thought that they may be the archeological missing link between animals and mankind. It was not until 1902 that scientific evidence of these &amp;ldquo;Monsters&amp;rdquo; was proven and today we can see these once mythical monsters in our local Zoos. However today we know them as Mountain Gorilla&amp;rsquo;s and their existence was proven as they were &amp;lsquo;discovered&amp;rsquo; in the Virunga Mountains of East Africa by a German Captain named Robert von Beringe (1865-1940) in October of that year.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;Who knows we may even find living and breathing dinosaurs as we begin discovering more of the planet. You may laugh however that is not impossible when you consider that in 1938 the Coelacanth lungfish thought to have been extinct since the Cretaceous period some 65.5 million years ago was caught.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;a href="http://news.bbc.co.uk/2/hi/science/nature/4501152.stm"&gt;http://news.bbc.co.uk/2/hi/science/nature/4501152.stm&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;In the Borneo Islands more than 400 new species alone have been identified on the island since 1996 and new ones are still being unearthed.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;a href="http://news.nationalgeographic.com/news/2006/12/061219-borneo-species.html"&gt;http://news.nationalgeographic.com/news/2006/12/061219-borneo-species.html&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;Just some food for thought.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122133" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="Odds &amp;amp; Ends" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/Odds+_2600_amp_3B00_+Ends/default.aspx" /><category term="Odds &amp; Ends" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/Odds+_2600_+Ends/default.aspx" /></entry><entry><title>SQL Server 2008 Memory Support</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/sql-server-2008-memory-support.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/sql-server-2008-memory-support.aspx</id><published>2008-09-07T17:23:24Z</published><updated>2008-09-07T17:23:24Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;In Microsoft SQL Server 2008 the Standard, Enterprise, Developer and Web editions can use whatever the Operating Systems maximum allowed memory is. &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;TEXT-ALIGN:center;" align="center"&gt;&lt;span style="COLOR:green;"&gt;Windows Server 2003&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;Windows Server 2003 Standard Edition can use a maximum of 4 GB. &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;Microsoft Windows Server 2003 Enterprise Edition can use a maximum of 32 GB for 32-bit (x86) machines and 64 GB for 64-bit Itanium machines. &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;TEXT-ALIGN:center;" align="center"&gt;&lt;span style="COLOR:green;"&gt;Windows Server 2008&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;Windows Server 2008 Standard Edition can use a maximum of 4 GB. &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;Microsoft Windows Server 2008 Enterprise Edition can use a maximum of 64 GB for 32-bit (x86) machines and 2 TB for 64-bit Itanium machines.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;The Workgroup edition can also use the Operating Systems maximum on 32-Bit systems and 4 GB on 64-bit systems.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;The Express and Express with Advanced Services can use a maximum of 1 GB.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122132" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="Microsoft SQL Server" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/Microsoft+SQL+Server/default.aspx" /></entry><entry><title>HTA Calendar Control Example Script</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/hta-calendar-control-example-script.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/hta-calendar-control-example-script.aspx</id><published>2008-09-07T17:22:59Z</published><updated>2008-09-07T17:22:59Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;This HTA script will provide you with an example for using the Microsoft Calendar Control for Microsoft Office.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The calendar control (Mscal.ocx) &lt;span style="COLOR:maroon;"&gt;Clsid:8E27C92B-1264-101C-8A2F-040224009C02&lt;/span&gt; is an ActiveX control and can be used with HTA scripts as well as others.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;HTA Script:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Head&lt;/span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Title&lt;/span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;myITforum Calendar&lt;span style="COLOR:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR:maroon;"&gt;Title&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Head&lt;/span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Body&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:red;"&gt;BgColor&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;=&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Cornsilk&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Object&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:red;"&gt;ID&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;=&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;&amp;quot;Calendar&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:red;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Width&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;=&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;100%&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:red;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Height&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;=&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;100%&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:red;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;ClassID&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;=&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;&amp;quot;CLSID:8E27C92B-1264-101C-8A2F-040224009C02&amp;quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;param&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:red;"&gt;name&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;=&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;&amp;quot;MonthLength&amp;quot;&lt;/span&gt; &lt;span style="COLOR:red;"&gt;value&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;=&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;&amp;quot;2&amp;quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Object&lt;/span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Script&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:red;"&gt;Language&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;=&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;&amp;quot;VBScript&amp;quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Script&lt;/span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Body&lt;/span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Html&lt;/span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;Microsoft Calendar Control Reference&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;a href="http://www.microsoft.com/technet/scriptcenter/topics/htas/calendar.mspx"&gt;http://www.microsoft.com/technet/scriptcenter/topics/htas/calendar.mspx&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122131" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="HTML Applications" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/HTML+Applications/default.aspx" /></entry><entry><title>The Bernard White SMS Server Tools 0.2.2 Release</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/the-bernard-white-sms-server-tools-0-2-2-release.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/the-bernard-white-sms-server-tools-0-2-2-release.aspx</id><published>2008-09-07T17:22:36Z</published><updated>2008-09-07T17:22:36Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;Bernard White&amp;rsquo;s SMS Server Tools version 0.2.2 was released on August 14 th 2008 and is available for download. &lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;"&gt;New Features&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;"&gt;Distribution&lt;/span&gt;&lt;span style="COLOR:maroon;"&gt; Point Mod&lt;/span&gt;&lt;span style="COLOR:maroon;"&gt; Tool has new built-in scheduling functionality that allows an action to be to run at a latter date / time.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;"&gt;Site Information Tool now shows site components roles and which servers they are installed on for each site. Also the COLL_OUT.BOX has been added to the list of reported inboxes.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;"&gt;Package Information Tool now shows details on Distributions In-Transit when the &amp;quot;-s d&amp;quot; switch is used.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;"&gt;Site Services Tool now has a new &amp;quot;-restart&amp;quot; switch added, allowing a component to be stopped and then started again in a single command.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:maroon;"&gt;Collection Membership Tool added to SMS Server Tools suite. This tool allows system, user or group resources to be added to a collection&amp;#39;s membership. It also features regular expression matching.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;SMS Server Tools 0.2.2 Download:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;a href="http://community.netplantation.com/download.php?view.4"&gt;http://community.netplantation.com/download.php?view.4&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122130" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="ConfigMgr 2007" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/ConfigMgr+2007/default.aspx" /></entry><entry><title>By Request VBS Script To Add To Do Tasks To Outlook</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/by-request-vbs-script-to-add-to-do-tasks-to-outlook.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/by-request-vbs-script-to-add-to-do-tasks-to-outlook.aspx</id><published>2008-09-07T17:22:08Z</published><updated>2008-09-07T17:22:08Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;This By Request VBS Script will allow you to enter to do tasks for outlook using dialog boxes.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;VBS Script:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; olTaskItem = 3&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objOutlook = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Outlook.Application&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objTask = objOutlook.CreateItem(olTaskItem)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objTask.Subject = InputBox(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Enter To Do Item&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objTask.Body = InputBox(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Enter Task Information&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objTask.Save&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;MsgBox &lt;span style="COLOR:maroon;"&gt;&amp;quot;Done&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122129" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="By Request" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/By+Request/default.aspx" /></entry><entry><title>Wisdom Of Our Fathers</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/wisdom-of-our-fathers.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/wisdom-of-our-fathers.aspx</id><published>2008-09-07T17:21:45Z</published><updated>2008-09-07T17:21:45Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;"&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;A closed mouth gathers no feet. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Accept that some days you&amp;#39;re the pigeon, and some days you&amp;#39;re the statue. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Good news is just life&amp;#39;s way of keeping you off balance. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;I always wanted to be a procrastinator, never got around to it. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;I am having an out of money experience. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;I considered atheism but there weren&amp;#39;t enough holidays. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;I don&amp;#39;t mind going nowhere as long as it&amp;#39;s an interesting path. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;If God wanted me to touch my toes, he would have put them on my knees. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;In just two days, tomorrow will be yesterday. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Indecision is the key to flexibility. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;It&amp;#39;s hard to make a comeback when you haven&amp;#39;t been anywhere. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;It&amp;#39;s not the pace of life that concerns me, it&amp;#39;s the sudden stop at the end. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Jury: Twelve people who determine which client has the better attorney. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Kids in the back seat cause accidents; accidents in the back seat cause kids. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Lead me not into temptation - I can find the way myself. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Living on Earth is expensive, but it does include a free trip around the sun. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;On the keyboard of life, always keep one finger on the escape key. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Someday we&amp;#39;ll look back on all this and plow into a parked car. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;The mind is like a parachute; it works much better when it&amp;#39;s open. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;The only time the world beats a path to your door is if you&amp;#39;re in the bathroom. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;There are two kinds of pedestrians...the quick and the dead. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Two wrongs don&amp;#39;t make a right, but two Wrights made an airplane. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;When you&amp;#39;re finally holding all the cards, why does everyone else decide to play chess? &lt;/li&gt;&lt;/ul&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122128" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="Break Time" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/Break+Time/default.aspx" /></entry><entry><title>Amish Teens Gone Wild</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/amish-teens-gone-wild.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/09/07/amish-teens-gone-wild.aspx</id><published>2008-09-07T17:21:22Z</published><updated>2008-09-07T17:21:22Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul style="MARGIN-TOP:0in;"&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Defiantly says, &amp;quot;If I had a radio, I&amp;#39;d listen to rap.&amp;quot; &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;He&amp;#39;s wearing his big black hat backwards&lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;His name is Jebediah, but he goes by &amp;quot;Jeb Daddy.&amp;quot; &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;In his sock drawer, you find pictures of women without bonnets. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Shows up at barn raisings in full &amp;quot;Kiss&amp;quot; makeup. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Sometimes stays in bed till after 6am. &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Uses slang expression: &amp;quot;Talk to the hand, cause the beard ain&amp;#39;t listening.&amp;quot; &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;Was recently pulled over for &amp;quot;driving under the influence of cottage cheese.&amp;quot; &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;When you criticize him, he yells, &amp;quot;Thou suck!&amp;quot; &lt;/li&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;You come upon his secret stash of colorful socks. &lt;/li&gt;&lt;/ul&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122127" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="Break Time" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/Break+Time/default.aspx" /></entry><entry><title>VBS Script To Retrieve SMS Executive Service Information From A List Of Machines</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/08/24/vbs-script-to-retrieve-sms-executive-service-information-from-a-list-of-machines.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/08/24/vbs-script-to-retrieve-sms-executive-service-information-from-a-list-of-machines.aspx</id><published>2008-08-24T18:07:38Z</published><updated>2008-08-24T18:07:38Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;This VBS script will read a text file called MachineList.Txt and will write the SMS Executive services information for the site servers to an excel spreadsheet. If the service state is stopped the results will be written in red.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;VBS Script:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; objExcel = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Excel.Application&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Visible = &lt;span style="COLOR:blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Workbooks.Add&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;intRow = 2&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; Fso = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Scripting.FileSystemObject&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; InputFile = fso.OpenTextFile(&lt;span style="COLOR:maroon;"&gt;&amp;quot;MachineList.Txt&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Do&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;While&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Not&lt;/span&gt; (InputFile.atEndOfStream)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;strComputer = InputFile.ReadLine&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Cells(1, 1).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;Machine Name&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Cells(1, 2).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;Service Name&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Cells(1, 3).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;Current State&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:maroon;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;servicename = &lt;span style="COLOR:maroon;"&gt;&amp;quot;SMS_Executive&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; objWMIService = GetObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;winmgmts:\\&amp;quot;&lt;/span&gt; &amp;amp; strComputer &amp;amp; &lt;span style="COLOR:maroon;"&gt;&amp;quot;\root\Cimv2&amp;quot;&lt;/span&gt;) &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; colItems = objWMIService.ExecQuery(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Select * From Win32_Service Where Name = &amp;#39;&amp;quot;&lt;/span&gt; &amp;amp; servicename &amp;amp; &lt;span style="COLOR:maroon;"&gt;&amp;quot;&amp;#39;&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;For&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;Each&lt;/span&gt; objItem &lt;span style="COLOR:blue;"&gt;in&lt;/span&gt; colItems &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Cells(intRow, 1).Value = objItem.SystemName&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Cells(intRow, 2).Value = objItem.DisplayName&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Cells(intRow, 3).Value = objItem.State&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;If&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; objExcel.Cells(intRow, 3).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;Stopped&amp;quot;&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Then&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Cells(intRow, 3).Font.ColorIndex = 3&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;End&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;intRow = intRow + 1&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Next&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;Loop&lt;/span&gt;&lt;span style="COLOR:blue;mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Range(&lt;span style="COLOR:maroon;"&gt;&amp;quot;A1:C1&amp;quot;&lt;/span&gt;).Select&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Selection.Interior.ColorIndex = 19&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Selection.Font.ColorIndex = 11&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Selection.Font.Bold = &lt;span style="COLOR:blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;objExcel.Cells.EntireColumn.AutoFit&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-no-proof:yes;"&gt;MsgBox &lt;span style="COLOR:maroon;"&gt;&amp;quot;Done&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=121586" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="Vbs Scripts" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/Vbs+Scripts/default.aspx" /></entry><entry><title>VBS Script To Browse For Folder And Send Sub Folders Name And Size To Excel</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/08/24/vbs-script-to-browse-for-folder-and-send-sub-folders-name-and-size-to-excel.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/08/24/vbs-script-to-browse-for-folder-and-send-sub-folders-name-and-size-to-excel.aspx</id><published>2008-08-24T18:07:11Z</published><updated>2008-08-24T18:07:11Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;This VBS Script will allow to browse for a directory folder and will write the subfolders name and size to an excel spreadsheet.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;VBS Script:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;a name="OLE_LINK2"&gt;&lt;/a&gt;&lt;a name="OLE_LINK1"&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;strComputer = &lt;span style="COLOR:maroon;"&gt;&amp;quot;.&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objWMIService = GetObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;winmgmts:\\&amp;quot;&lt;/span&gt; &amp;amp; strComputer &amp;amp; &lt;span style="COLOR:maroon;"&gt;&amp;quot;\root\cimv2&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objShell = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Shell.Application&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objFolder = objShell.BrowseForFolder (0, &lt;span style="COLOR:maroon;"&gt;&amp;quot;Select Folder:&amp;quot;&lt;/span&gt;, (0))&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objFolder &lt;span style="COLOR:blue;"&gt;Is&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Nothing&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Wscript.Quit&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Else&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objFolderItem = objFolder.Self&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objPath = objFolderItem.Path&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;End&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objFolderItem = objWMIService.ExecQuery _&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Associators of {Win32_Directory.Name=&amp;#39;&amp;quot;&lt;/span&gt; &amp;amp; strFolderName &amp;amp; &lt;span style="COLOR:maroon;"&gt;&amp;quot;&amp;#39;} &amp;quot;&lt;/span&gt; _&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;amp; &lt;span style="COLOR:maroon;"&gt;&amp;quot;Where AssocClass = Win32_Subdirectory &amp;quot;&lt;/span&gt; _&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;amp; &lt;span style="COLOR:maroon;"&gt;&amp;quot;ResultRole = PartComponent&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objExcel = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Excel.Application&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Visible = &lt;span style="COLOR:blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Workbooks.Add&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;intRow = 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(1, 1).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;Folder&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(1, 2).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;Size&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objShell = CreateObject (&lt;span style="COLOR:maroon;"&gt;&amp;quot;Shell.Application&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;For&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; &lt;span style="COLOR:blue;"&gt;Each&lt;/span&gt; strFileName &lt;span style="COLOR:blue;"&gt;in&lt;/span&gt; objFolder.Items&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(intRow, 1).Value = objFolder.GetDetailsOf(strFileName, 0)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(intRow, 2).Value = objFolder.GetDetailsOf(strFileName, 8)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;intRow = intRow + 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Range(&lt;span style="COLOR:maroon;"&gt;&amp;quot;A1:B1&amp;quot;&lt;/span&gt;).Select&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Selection.Interior.ColorIndex = 19&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Selection.Font.ColorIndex = 11&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Selection.Font.Bold = &lt;span style="COLOR:blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells.EntireColumn.AutoFit&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span&gt;&lt;span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;MsgBox &lt;span style="COLOR:maroon;"&gt;&amp;quot;Done&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=121585" width="1" height="1"&gt;</content><author><name>dhite</name><uri>http://myitforum.com/cs2/members/dhite.aspx</uri></author><category term="Vbs Scripts" scheme="http://myitforum.com/cs2/blogs/dhite/archive/tags/Vbs+Scripts/default.aspx" /></entry><entry><title>VBS Script Find Clients Not Reporting A Serial Number To Excel</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/dhite/archive/2008/08/24/vbs-script-find-clients-not-reporting-a-serial-number-to-excel.aspx" /><id>http://myitforum.com/cs2/blogs/dhite/archive/2008/08/24/vbs-script-find-clients-not-reporting-a-serial-number-to-excel.aspx</id><published>2008-08-24T18:06:52Z</published><updated>2008-08-24T18:06:52Z</updated><content type="html">&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;This VBS script will take a site server name and site code via input dialog boxes and will send the machine names to Excel that do not have a serial number present in the SMS database.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="COLOR:green;"&gt;VBS Script:&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;strServer = InputBox (&lt;span style="COLOR:maroon;"&gt;&amp;quot;Enter Site Server Name&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;strDatabase = InputBox (&lt;span style="COLOR:maroon;"&gt;&amp;quot;Enter Three Letter Site Code&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Set&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt; objExcel = CreateObject(&lt;span style="COLOR:maroon;"&gt;&amp;quot;Excel.Application&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Visible = &lt;span style="COLOR:blue;"&gt;True&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Workbooks.Add&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;intRow = 2&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(1, 1).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;Machine Name&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;objExcel.Cells(1, 2).Value = &lt;span style="COLOR:maroon;"&gt;&amp;quot;Serial Number&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:maroon;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="COLOR:blue;mso-bidi-font-size:12.0pt;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-no-proof:yes;"&gt;Const&lt;/span&gt;&lt;span style="mso-bidi-font-size:12.0pt;mso-bidi-font-famil