A Cookie Recipie

10 04 2009

Coming from me one would most likely think I’m referring to a web browser cookie. This is not that!

2 cups butter
24 oz. Chocolate chips
4 cups flour
2 cups brown sugar
2 tsp. Soda
1 tsp. Salt
2 cups sugar
1 8 oz. Hershey Bar (grated)
5 cups blended oatmeal
4 eggs
2 tsp. Baking powder
2 tsp. Vanilla
3 cups chopped nuts (your choice)

Measure oatmeal, and blend in a blender to a fine powder.
Cream the butter and both sugars. Add eggs and vanilla, mix
together with flour, oatmeal,salt, baking powder, and soda.
Add chocolate chips, Hershey bar, and nuts. Roll into
balls, and place two inches apart on a cookie Sheet. Bake
for 10 minutes at 375 degrees.

Makes 112 cookies





VB Script to Modify Registry Keys

3 04 2009

'Script adds or modifies existing values and paths to the windows registry.
'By Christopher Provolt

Const REG_SZ = "REG_SZ"
Const REG_DWORD = "REG_DWORD"
dim objShell

Set objShell = WScript.CreateObject("WScript.Shell")

UpdateRegKey "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CCM\HttpPort", "50", REG_DWORD

Sub UpdateRegKey(strRegPath, strValue, strType)
objShell.RegWrite strRegPath, strValue, strType
End Sub

UpdateRegKey Function Input
'Registry Path,"Value","Type"

'DWORD values should be converted from DEC to HEX





SCCM Hardware Inventory Failure Fix

3 04 2009

     Recently I discovered a problem with about 400 client computers in my SCCM site not reporting their Hardware Inventory information to the site server. Looking at the Inventory Agent log files, %windir%\system32\ccm\logs\InventoryAgent.log, I pinpointed the problem to a specific inventory class. These are the entries that were suspect

     The SMS_InstalledSoftware class belongs to the Asset Intelligence feature in SCCM 2007. In the case of my site I don’t use the Asset Intelligence features yet and have decided to turn off all the Asset Intelligence Reporting Classes. To perform this task please do the following:

1. Expand the Computer Management node in your site
2. Right click on the Asset Intelligence node and select Enable Asset Intelligence (sounds counter intuitive)
3. Select the Enable only the selected Asset Intelligence reporting classes radio button
4. Deselect all the Asset Intelligence classes and then select OK.

     On the next Hardware Inventory everything should come back to normal. I did not wish to wait for the next scheduled Hardware Inventory to run so I forced one by deploying the following script to all clients.

'Reset SMS Hardware Inventory Action to force a full HW Inventory Action
sInventoryActionID = "{00000000-0000-0000-0000-000000000001}"

' Get a connection to the "root\ccm\invagt" namespace (where the Inventory agent lives)

Dim oLocator Set oLocator = CreateObject("WbemScripting.SWbemLocator") Dim oServices Set oServices = oLocator.ConnectServer( , "root\ccm\invagt")

' Delete the specified InventoryActionStatus instance

oServices.Delete "InventoryActionStatus.InventoryActionID=""" & sInventoryActionID & """"

'Pause 3 seconds to allow the action to complete.
wscript.sleep 3000

'Run a SMS Hardware Inventory
Set cpApplet = CreateObject("CPAPPLET.CPAppletMgr")
Set actions = cpApplet.GetClientActions
For Each action In actions
     If Instr(action.Name,"Hardware Inventory") > 0 Then
          action.PerformAction
     End if
Next