<?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">Rick Jones</title><subtitle type="html">SMS Top Level Technician
~90,000 SMS clients
Microsoft MVP-SMS 2006</subtitle><id>http://myitforum.com/cs2/blogs/rjones/atom.aspx</id><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/rjones/default.aspx" /><link rel="self" type="application/atom+xml" href="http://myitforum.com/cs2/blogs/rjones/atom.aspx" /><generator uri="http://communityserver.org" version="3.1.31113.47">Community Server</generator><updated>2007-06-21T00:44:00Z</updated><entry><title>Custom Updates Scan Tool inventory for MS07-054</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/rjones/archive/2007/09/14/custom-updates-scan-tool-inventory-for-ms07-054.aspx" /><id>http://myitforum.com/cs2/blogs/rjones/archive/2007/09/14/custom-updates-scan-tool-inventory-for-ms07-054.aspx</id><published>2007-09-14T16:29:00Z</published><updated>2007-09-14T16:29:00Z</updated><content type="html">&lt;p&gt;Ok, so like most SMS tech&amp;#39;s I found myself without a standard SMS inventory for MS07-054.&lt;/p&gt;
&lt;p&gt;I had&amp;nbsp;installed the Custom Updates Scan Tool and thought, hey... I have that thing installed and haven&amp;#39;t really had a good use for it yet.&amp;nbsp; This gave me the perfect oportunity to get it working.&lt;/p&gt;
&lt;p&gt;What I used for my criteria is based off the batch file posted&amp;nbsp;in&amp;nbsp;KB942416 &lt;a href="http://support.microsoft.com/kb/942416"&gt;http://support.microsoft.com/kb/942416&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;We don&amp;#39;t support windows 2000 in our environment&amp;nbsp;so I did not build that into my criteria so, if you have windows 2000 they are not supported by this posted method.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I&amp;nbsp;Build the criteria for the patch;&lt;/p&gt;&lt;font size="1"&gt;
&lt;blockquote&gt;
&lt;p&gt;Prerequisite Rules&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;lar:And&amp;gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;bar:WindowsVersion Comparison=&amp;quot;GreaterThanOrEqualTo&amp;quot; MajorVersion=&amp;quot;5&amp;quot; MinorVersion=&amp;quot;1&amp;quot; ServicePackMajor=&amp;quot;2&amp;quot; ServicePackMinor=&amp;quot;0&amp;quot; ProductType=&amp;quot;1&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;bar:FileExists Path=&amp;quot;msn messenger\msnmsgr.exe&amp;quot; Csidl=&amp;quot;38&amp;quot; /&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;lt;/lar:And&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Installed Rules&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;bar:FileVersion Path=&amp;quot;msn messenger\msnmsgr.exe&amp;quot; Csidl=&amp;quot;38&amp;quot; Comparison=&amp;quot;GreaterThanOrEqualTo&amp;quot; Version=&amp;quot;8.1.0.0&amp;quot; /&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Installable Rules&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;bar:FileVersion Path=&amp;quot;msn messenger\msnmsgr.exe&amp;quot; Csidl=&amp;quot;38&amp;quot; Comparison=&amp;quot;LessThan&amp;quot; Version=&amp;quot;8.1.0.0&amp;quot; /&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I also filled in as much information about the KB as i could find, KB, Article ID, Severity, Description.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/rjones/MS07-054_CUPT.JPG"&gt;&lt;img src="http://myitforum.com/cs2/blogs/rjones/MS07-054_CUPT.JPG" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is the &amp;nbsp;Cab file (in a zip as thats the only file type allowed here) for importing this into your Custom Updates Scan Tool console.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/rjones/MS07-054_XPSP2.zip"&gt;MS07-054_XPSP2.zip&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To get the Source file to upgrade the client to MSN Messenger 8.1 I took the clue from the above mentioned KB I downloaded the MSN Messenger 8.1 package;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;For Windows XP and later operating systems, download Windows Live Messenger 8.1.0178. To do this, visit the following Microsoft Web site: &lt;/p&gt;
&lt;div class="indent"&gt;&lt;span class="ll"&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=d78f2ff1-79ea-4066-8ba0-ddbed94864fc&amp;amp;DisplayLang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=d78f2ff1-79ea-4066-8ba0-ddbed94864fc&amp;amp;DisplayLang=en &lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Run the installation package by using the &lt;b&gt;/C&lt;/b&gt; switch to extract the MsnMsgs.msi file, and then copy the file to the BIN folder that you created in step 1.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;I used the following command;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;MD C:\MessengerContents&lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Messenger.exe /C /T:&amp;quot;C:\MessengerContents&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once that package was extracted I have the raw MSI for just Messenger without all of the Frills.&lt;/p&gt;
&lt;p&gt;You then&amp;nbsp;use the&amp;nbsp;SMS DSUW and deliver the patch as you normally would with SMS.&lt;/p&gt;
&lt;p&gt;When it asks for the source files,&amp;nbsp;I used the one from the extracted folder&amp;nbsp;as my source file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=105742" width="1" height="1"&gt;</content><author><name>Anonymous</name><uri>http://myitforum.com/cs2/members/Anonymous.aspx</uri></author><category term="Custom Updates Scan Tool" scheme="http://myitforum.com/cs2/blogs/rjones/archive/tags/Custom+Updates+Scan+Tool/default.aspx" /></entry><entry><title>A Different way to SMS_DEF.MOF</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/rjones/archive/2007/06/21/a-different-way-to-sms-def-mof.aspx" /><id>http://myitforum.com/cs2/blogs/rjones/archive/2007/06/21/a-different-way-to-sms-def-mof.aspx</id><published>2007-06-21T07:44:00Z</published><updated>2007-06-21T07:44:00Z</updated><content type="html">&lt;p&gt;One of the most complicated things that an SMS Technician will find himself/herself involved with is making modifications to the SMS_DEF.MOF.&lt;/p&gt;
&lt;p&gt;With SMS SP3, I found myself like every other SMS Technician trying to wrap my mind around the vast changes in the SP3 MOF.&lt;/p&gt;
&lt;p&gt;This time I got lost in the changes and the customizations that I needed to make for use in our environment.&amp;nbsp; I am a programmer at heart, so I look for ways to modularize my work and found myself wishing for a way to modularize the SMS_DEF.MOF changes.&lt;/p&gt;
&lt;p&gt;I have found that&amp;nbsp;debugging the modifications to&amp;nbsp;the original SMS_DEF.MOF&amp;nbsp;has left me lost as to what was the original and what was my changes.&amp;nbsp; Then when there is a problem with something I have changed, I have to go back to a backup file, find the change and reverse that change and hopefully that fixed the problem.&lt;/p&gt;
&lt;p&gt;This needed to be simplified for me, modularized.&amp;nbsp; So what you see below is my &amp;quot;Compilation process&amp;quot; for making changes to the SMS_DEF.MOF.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The basic process is a batch file that steps out the build process and a vbscript for making strategic modifications to the final compiled SMS_DEF.MOF.&lt;/p&gt;
&lt;p&gt;I put this entire process into a folder for&amp;nbsp;compiling, this is the process for setting up this structure.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Rename the SMS SP3 SMS_DEF.MOF to sms_defSP3Orig.mof&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Put all new tables into sms_def_CustomAdditions.mof&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Extract the contents of the ZIP file to the folder (contains my MOF_C_FileChanger.vbs and a couple of .ccf files and a compile.cmd)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Make changes to the compile.cmd to add in &lt;strong&gt;C&lt;/strong&gt;ustomization &lt;strong&gt;C&lt;/strong&gt;hange &lt;strong&gt;F&lt;/strong&gt;ile tweaks ( the acronym for the .CCF files)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;The compile.cmd when run will copy together the SMS_defSP3Orig.mof and SMS_def_CustomAdditions.mof into sms_def.mof and then using the MOF_C_FileChanger script, processes each Customization Change.&lt;/p&gt;
&lt;p&gt;Here is an example of a basic compile.cmd file;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;@echo off&lt;br /&gt;Echo Copying sms_defSP3Orig.mof + sms_def_CustomAdditions.mof + SMS_def_Script.mof to sms_def.mof&lt;br /&gt;copy sms_defSP3Orig.mof /A + sms_def_CustomAdditions.mof /A + SMS_def_Script.mof /A&amp;nbsp;sms_def.mof&lt;/p&gt;
&lt;p&gt;echo Compiling MOF_C_Changes.CCF&lt;br /&gt;cscript.exe //Nologo MOF_C_FileChanger.vbs sms_def.mof MOF_C_Changes.CCF&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Now your thinking.... what is the script doing with the control file?&amp;nbsp; The script&amp;nbsp;is basicly doing a block change. (the&amp;nbsp;entire BLOCK&amp;nbsp;MUST MATCH exactly with all spaces for it to be found and replaced)&amp;nbsp; Anything between the line that starts with &lt;strong&gt;[[ORIGINAL BEGIN]]&lt;/strong&gt; and &lt;strong&gt;[[ORIGINAL END]]&lt;/strong&gt; is replaced with the block contents between &lt;strong&gt;[[REPLACEMENT&amp;nbsp;BEGIN]]&lt;/strong&gt; and &lt;strong&gt;[[REPLACEMENT&amp;nbsp;END]]&lt;/strong&gt;.&amp;nbsp; Example; (here is the contents of the MOF_C_Changes.CCF file;&lt;/p&gt;
&lt;p&gt;NOTE: The indent is used here&amp;nbsp;for&amp;nbsp;ease of&amp;nbsp;reading and is&amp;nbsp;NOT in the MOF_C_Changes.CCF file.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[[ORIGINAL BEGIN]]&lt;br /&gt;//==================================================================&lt;br /&gt;//&lt;br /&gt;// SMS_DEF.mof - Maps SMS inventoriable set to that provided by&lt;br /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the WBEM CIMV2 Win32 Provider - version 1085&lt;br /&gt;// &lt;br /&gt;// Copyright (c) Microsoft Corporation, All Rights Reserved&lt;br /&gt;//&lt;br /&gt;//==================================================================&lt;/p&gt;
&lt;p&gt;//==================================================================&lt;br /&gt;[[ORIGINAL END]]&lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;[[REPLACEMENT BEGIN]]&lt;br /&gt;//==================================================================&lt;br /&gt;//&lt;br /&gt;// SMS_DEF.mof - Maps SMS inventoriable set to that provided by&lt;br /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the WBEM CIMV2 Win32 Provider - version 1085&lt;br /&gt;//&lt;br /&gt;// Copyright (c) Microsoft Corporation, All Rights Reserved&lt;br /&gt;// &lt;br /&gt;//==================================================================&lt;br /&gt;//&lt;br /&gt;// *****************************************************************&lt;br /&gt;// ***** This MOF was compiled with MOF_C_FileChanger changes&amp;nbsp; *****&lt;br /&gt;// ***** Please see end of document for changes details&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *****&lt;br /&gt;// *****************************************************************&lt;br /&gt;//&lt;br /&gt;//==================================================================&lt;br /&gt;[[REPLACEMENT END]]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You can string together as many changes as you like.&amp;nbsp; For instance, in my environment, I made a change to the Hosting Model in the AAInstProv to fix a problem with the SMS_DEF.MOF file being compiled on a Vista workstation.&lt;/p&gt;
&lt;p&gt;Add this to the compile.cmd&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;echo Compiling MOF_C_AAInstProv_HostingModel.ccf&lt;br /&gt;cscript.exe //Nologo MOF_C_FileChanger.vbs sms_def.mof MOF_C_AAInstProv_HostingModel.ccf&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;MOF_C_AAInstProv_HostingModel.ccf&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[[ORIGINAL BEGIN]]&lt;br /&gt;instance of __Win32Provider as $AAInstProv &lt;br /&gt;{&lt;br /&gt;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp; = &amp;quot;AAInstProv&amp;quot; ;&lt;br /&gt;&amp;nbsp; ClsId&amp;nbsp;&amp;nbsp; = &amp;quot;{86875FDD-EB5D-4742-8026-94B2E31E1AB9}&amp;quot;;&lt;br /&gt;&amp;nbsp; ImpersonationLevel = 1;&lt;br /&gt;&amp;nbsp; PerUserInitialization = &amp;quot;False&amp;quot;;&lt;br /&gt;};&lt;br /&gt;[[ORIGINAL END]]&lt;/p&gt;
&lt;p&gt;[[REPLACEMENT BEGIN]]&lt;br /&gt;//&lt;br /&gt;// Customization adjustment by Rick Jones&lt;br /&gt;// Added HostingModel for Vista support.&lt;br /&gt;//(NOTE: Will not compile on Windows 2000)&lt;br /&gt;//&lt;br /&gt;instance of __Win32Provider as $AAInstProv&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp; = &amp;quot;AAInstProv&amp;quot; ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClsId&amp;nbsp;&amp;nbsp; = &amp;quot;{86875FDD-EB5D-4742-8026-94B2E31E1AB9}&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ImpersonationLevel = 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PerUserInitialization = &amp;quot;False&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HostingModel = &amp;quot;LocalSystemHost:SMS&amp;quot;;&lt;br /&gt;};&lt;br /&gt;[[REPLACEMENT END]]&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;What about if you wanted to turn off reporting of some table?&lt;/p&gt;
&lt;p&gt;Add this to the compile.cmd&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;echo Compiling MOF_C_AAInstProv_DisableInstalledSoftware.ccf&lt;br /&gt;cscript.exe //Nologo MOF_C_FileChanger.vbs sms_def.mof MOF_C_AAInstProv_DisableInstalledSoftware.ccf&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;MOF_C_AAInstProv_DisableInstalledSoftware.ccf&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[[ORIGINAL BEGIN]]&lt;br /&gt;[ dynamic, provider(&amp;quot;AAInstProv&amp;quot;),&lt;br /&gt;&amp;nbsp; SMS_Report&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (TRUE),&lt;br /&gt;&amp;nbsp; SMS_Group_Name (&amp;quot;Installed Software&amp;quot;),&lt;br /&gt;&amp;nbsp; SMS_Namespace&amp;nbsp; (TRUE),&lt;br /&gt;&amp;nbsp; SMS_Class_ID&amp;nbsp;&amp;nbsp; (&amp;quot;MICROSOFT|INSTALLED_SOFTWARE|1.0&amp;quot;) ]&lt;br /&gt;[[ORIGINAL END]]&lt;/p&gt;
&lt;p&gt;[[REPLACEMENT BEGIN]]&lt;br /&gt;//&lt;br /&gt;// Customization adjustment by Rick Jones&lt;br /&gt;// Disabled Reporting&lt;br /&gt;//&lt;br /&gt;[ dynamic, provider(&amp;quot;AAInstProv&amp;quot;),&lt;br /&gt;&amp;nbsp; SMS_Report&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (FALSE),&lt;br /&gt;&amp;nbsp; SMS_Group_Name (&amp;quot;Installed Software&amp;quot;),&lt;br /&gt;&amp;nbsp; SMS_Namespace&amp;nbsp; (TRUE),&lt;br /&gt;&amp;nbsp; SMS_Class_ID&amp;nbsp;&amp;nbsp; (&amp;quot;MICROSOFT|INSTALLED_SOFTWARE|1.0&amp;quot;) ]&lt;br /&gt;[[REPLACEMENT END]]&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This ZIP file is a working basic structure of the compiler including the script and the MOF_C_Changes.ccf file.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/rjones/MOF_Compiler.zip"&gt;MOF_Compiler.zip&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This is an updated version for use with ConfigMgr.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://myitforum.com/cs2/blogs/rjones/MOFCompiler_ConfigMgr.zip"&gt;MOFCompiler_ConfigMgr.zip&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=103544" width="1" height="1"&gt;</content><author><name>Anonymous</name><uri>http://myitforum.com/cs2/members/Anonymous.aspx</uri></author><category term="SMS_DEF.MOF" scheme="http://myitforum.com/cs2/blogs/rjones/archive/tags/SMS_5F00_DEF.MOF/default.aspx" /></entry></feed>
