0 Replies Latest reply on Nov 11, 2009 2:49 PM by

    Running OOBMC outside of SCCM


      A while back I received a .vbs script and docs from Intel on running the AMT OOB Management console outside of SCCM.

      The script didn’t work and didn’t satisfy my need.


      The problem I have is my normal login account is too large to work on all of our AMT devices.  It’s a Kerberos token size issue.

      The solution is to logoff and login with a test account that has a small Kerberos token size.  This introduces other problems with accessing network shares without logging off and back on again. So I set out to create a script using cmd line, see below. 


      This script will get the additional data via a WMI query to the SCCM server and then run the runas command on the oobconsole.exe.

      You will need the SCCM console installed. Change the 2 variables at the top of the script and you are good to go.

      This should work on XP, Vista and 7.


      No warranties expressed or implied. Use at your own risk, yada, yada, yada.


      @echo off



      set _Version=1.0

      set _pcname=

      set _SID=

      set _newloginas=



      :: Change these Variables for your environment

      set _loginas=DOMAIN\USER

      Set _SCCMServer=FQDN of SCCM Server

      :: ***********************************************



      time /t


      echo Start Out Of Band Management Console.

      echo.Created by Todd Wilburn - Client Services Engineer

      echo Version %_Version% on 11/11/09





      echo Enter the computer name or

      echo press "Enter" for the local computer.

      set /p _PCName=:

      IF [%_PCName%] == [] SET _PCname=%Computername%


      If not exist "c:\program files\Microsoft Configuration Manager Console\AdminUI\bin\oobconsole.exe" (

                      echo OOBCONSOLE.exe was not found. Install SCCM console.


                      goto end



      :: Check to see if PC is online.


      echo Check to see if PC is online.

      title %_PCName%

      color 17

      PING %_PCName% -n 1 -l 1 2>NUL | FIND "TTL=" >NUL || GOTO error

      goto WMIstart




      echo The computer, %_PCName%, is not responding. Please try again.

      set _pcname=

      color 0f

      goto INPUT




      echo Enter login account

      echo press "Enter" to use %_loginas%.

      set /p _newloginas=:

      IF NOT [%_newloginas%] == [] SET _loginas=%_newloginas%


      FOR /F "tokens=2-17 delims== " %%d in ('wmic /node:%_SCCMServer% /namespace:\\root\sms\site_poc path SMS_FullCollectionMembership get /all') do (

                      if /i %%p equ %_pcname% set _SID=%%q



      if [%_SID%] == [] (

                      echo Computer not found on SCCM Server %_SCCMserver%


                      goto ClearVariables



      runas /user:%_loginas% "\"c:\program files\Microsoft Configuration Manager Console\AdminUI\bin\oobconsole.exe\" -s %_SCCMServer% -t %_SID%"

      if %errorlevel% equ 1 pause & goto clearvariables




      color 0f

      Title Done.