January 2009 - Posts

Roger Zanders' SCCM Client Center 2.0 wiki documentation

Roger recently released the public version of CliCtr 2.0.  Here's a link to a wiki describing some of the features and available customizations.

http://sourceforge.net/apps/mediawiki/smsclictr/index.php?title=SMSCliCtrV2_Docs

Posted by skissinger | with no comments

RCrumbaker Web Remote Tools 3.21 Customizations - a list

With so many wonderful people adding great extensions to Ron's Web Remote Tool 3.21, I thought a nice list in the wiki of where the customizations are was in order. 

http://www.myitforum.com/myITWiki/SCCMTools.ashx?NoRedirect=1#RonCrumbakerWebRemoteTools3.21

Since it's a wiki, anyone can add more links as they create their own customizations.  It's also very likely I missed a few.  If I missed any links, just let me know or sign up for your own wiki author account if you want to add more content!

Posted by skissinger | with no comments

MOF Snippet for ServiceDLL in registry - by request

By request, a script + mof edit to pull back the values in HKLM\SYSTEM\CurrentControlSet\Services\ <servicename> \parameters\ServiceDll

In the attached file is a vbscript to be run on your clients on as a recurring advertisement using 'whether or not a user is logged in' and SYSTEM context.  The script reads the registry, and populates a WMI custom namespace.  Also in the attached file is a mof snippet to be added to the bottom of sms_def.mof contained in your inboxes\clifiles.src\hinv folder on your primary site servers.

Once implemented, you'll get back data like this:

Posted by skissinger | with no comments

NSLookup - Ron Crumbaker Web Remote Console 3.21

George K (MeenEnta) shared his code for some of his Ron Console edits in this threadRickyM & I are hoping to share some of them here.

 This one is for performing an NSlookup against the target computer.  I've modified it a bit from being a button to being an icon.

In this attached file are the snippets and the .png file you could use. Place the network-32x32.png file in your \Images folder; the folder is located where machrest.asp resides.

Edit machrest.asp, and put this snippet near the top (it was around line 70 for me, but I've edited my machrest quite a bit, might not be the same line number.   It's above the "First Specifiy a machine name".

<IMG title="NSLookup" style="CURSOR: hand" onclick="NSLookup()"
 height="24" src="images/Network-32x32.png" width="24" border="0">

--------------------------

Put this snippet near the bottem by all the other sub/end sub routines:

Sub nsLookup
On Error Resume Next
strComputer = Trim(document.frmMain.txtValue.value)
Set objShell = CreateObject("WScript.Shell")
If strComputer = "" Then
 MsgBox "Computer Name or IP required",,"NSLookup"
 Else
  strCommand = "Nslookup " & strComputer
  Set objExecObject = objShell.Exec(strCommand)
  MsgBox objExecObject.StdOut.ReadAll()
End If
End Sub

-----------------------

Both of these snippets are also in the attached file in case word-wrap modifies the lines.

Save machrest.asp.  Mine ended up looking a bit like this:

NSLookup Sample

Posted by skissinger | with no comments

Firewall Status - Ron Crumbaker Web Remote Console 3.21

George K (MeenEnta) shared his code for some of his Ron Console edits in this threadRickyM & I are hoping to share some of them here.

This one is for checking interactively the Firewall Status on the computer.  George's original was a normal button on Ron's console.  But I've changed it to an icon-type -- mainly because I wanted to see how to do it. 

Is this attached file, are the snippets & the .png icon you could use.  Place the Firewall-32x32.png image file in your \Images folder; the folder is located where machrest.asp resides.

Edit machrest.asp, and put this snippet near the top (it was around line 70 for me, but I've edited my machrest quite a bit, might not be the same line number.   It's above the "First Specifiy a machine name".

<!-- Icons Section -->
<td vAlign="top" width="416" height="30" colspan="3">
<IMG title="Firewall Status" style="CURSOR: hand" onclick="FirewallStatus()"
 height="24" src="images/Firewall-32x32.png" width="24" border="0">
</td>
<!-- End of Icons Section -->

--------------------------------

Put this snippet near the bottem by all the other sub/end sub routines:

Sub FirewallStatus
On Error Resume Next
Const Hkey_Local_Machine = &H80000002
strComputer = Trim(document.frmMain.txtValue.value)
If strComputer = "" Then
 MsgBox "Computer Name or IP required",,"Firewall Status"
 Else
  Err.Clear
  Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
  If Err.number <> 0 Then
   MsgBox "Unable to access WMI on " & strComputer & vbCr &_
        "Error: " & Err.description,,"Firewall Status"
   Else
    strKeyPath = "System\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile"
    ValueName = "EnableFirewall"
    objReg.GetDWordValue Hkey_Local_Machine, strKeyPath, ValueName, dwValue
    If dwValue = 0 Then
    MsgBox strComputer & " reports Firewall Is " & vbCr &vbTab & "Off",,"Firewall Status"
    ElseIf dwValue = 1 Then
    MsgBox strComputer & " reports Firewall Is " &vbCr & vbtab & "On",,"Firewall Status"
    End If
   End If
End If
End Sub

-----------------------

Both of these snippets are also in the attached file in case word-wrap modifies the lines.

Save machrest.asp.  Mine ended up looking a bit like this:

RonCFWIcon

Posted by skissinger | with no comments

Find Hyperthread enabled computers

Confirm your SMS2003 or ConfigMgr environment is reporting on 2 elements by

  1. On your primary site server(s), open up sms_def.mof contained in inboxes\clifiles.src\hinv
  2. Within that file, look for “IsHyperthreadCapable” and “IsHyperthreadEnabled”.  They may be set as “FALSE”.  Change them to TRUE, and save the file.
  3. Use this to monitor your inventory changes.

 Once you have data being returned, a possible report is:

SELECT DISTINCT
v_R_System.Name0 AS [Name],
CASE
  WHEN v_GS_PROCESSOR.IsHyperthreadCapable0 = 1 THEN 'Yes'
   ELSE 'No'
END AS [Hyperthread Capable?],
CASE
   WHEN  v_GS_PROCESSOR.IsHyperthreadEnabled0 = 0 THEN 'Off'
   ELSE 'Not Applicable'
END AS [Hyperthread Enabled?]
FROM  
v_GS_PROCESSOR
INNER JOIN v_R_System
   ON v_GS_PROCESSOR.ResourceID = v_R_System.ResourceID
   AND v_R_System.obsolete0 = 0
   AND v_R_System.decommissioned0 = 0
   AND v_R_System.client0 = 1

This blog entry brought to you by the following resources: 

Posted by skissinger | with no comments

#2 is #3!

John Nelson (also known as Number2) http://myitforum.com/cs2/blogs/jnelson/, just let me know he's been awarded MVP!

That makes 3 MVPs working on the same team.

Since he let the cat out of the bag when I joined his team this past summer, I feel it's only fair I announce this wonderful news.

Congratulations, John!  Well deserved.

Posted by skissinger | 3 comment(s)
Filed under: