4 Replies Latest reply on May 20, 2010 12:11 PM by Jared Barneck

    Different PXE boot menus for different PXE Proxy reps?

    Apprentice

      Is there a way to have different PXE boot menus for different PXE Proxy reps?  Reason I ask, we have an external vendor that warehouses, images, and ships out our new pc's as they are ordered from our Business divisions.  When building the PXE Boot Menu, I created a listing and asked that they only use the options under their name.  I would like to only list the images they need and not everything.

      Current example=PXE Boot Menu:

       

      MyCompany

         test

            abc

         otherimages

            etc.

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

      ExternalVendor

        1 desktops

           std

           pro

        2 laptops

           std

           pro

       

      Ideal example=PXE Boot Menu:

       

      ExternalVendor

        1 desktops

           std

           pro

        2 laptops

           std

           pro

        • 1. Re: Different PXE boot menus for different PXE Proxy reps?
          Jared Barneck SupportEmployee

          Well, you have to customize the WinPE image once it is installed.

           

          See in the WinPE image there is a Startnet.bat which calls another batch file, which downloads dosmenu.cfg from a web share on the Core Server.

           

          You have to

          1. Copy the dosmenu.cfg and naem it whatever, site1.cfg.

          2. Change the batch file in the WinPE image to download site1.cfg as dosmenu.cfg

           

          Then remember to never overwrite your WinPE image or if you do, remember to make the change.

           

          Alternatedly, you could also copy the WinPE image on the Core to a different name, change it on the Core Server and have two WinPE images and then copy the PXE Representative deployment script and have it deploy the other PXE Rep.

           

          I hope you got all that...

          1 of 1 people found this helpful
          • 2. Re: Different PXE boot menus for different PXE Proxy reps?
            EMiranda Expert

            to add to rhyous wonderful suggestions. if you know a little batch scripting you could also use the good ole choice.exe, which came back into the OS in Vista and Win7.  you can grab the .exe from a vista or win7 machine in %win%\system32.  I don't believe it is included in WinPE, but you can inject it in X:\windows\system32 and will work fine.

             

             

            ... as rhyous stated, create your different dosmenu.cfg, and name them sitea.cfg, siteb.cfg, ect..

             

            then modify the already existing batch file that is in the PE image (x:\ldclient) being called which is PxeMenuStart.cmd

             

             

            Orginal Contents are:

             

             

            @ECHO OFF
            SET n=0
            :getmenu
            SET /A n=n+1
            IF %n% GTR 10 GOTO fail
            ldsleep 5
            sdclient /f /o /p="http://%CoreServer%/landesk/files/dosmenu.cfg"
            IF %ERRORLEVEL% LSS 0 GOTO getmenu
            GOTO runmenu
            
            :fail
            echo "Failed to get menu.  Verify any network drivers, DHCP settings, and name resolution for %CoreServer%."
            pause
            goto end
            
            :runmenu
            RunBatch 500 X:\LDClient PxeMenu dosmenu.cfg
            
            :end
            
            

             

             

            Then you can modify it to something like this...

             

             

            @ECHO OFF
            SET n=0
            :getmenu
            SET /A n=n+1
            IF %n% GTR 10 GOTO fail
            ldsleep 5
            CLS
            Echo PXE SITE MENU
            ECHO =========================================================================
            ECHO 1   SITE A            This is site A
            ECHO 2   SITE B            This is site B
            ECHO 3   SITE C            This is site C
            ECHO 4   SITE D            This is site D
            ECHO ========================================================================
            CHOICE /c 1234 /M "Which PXE Site would you like to go to?"
            IF %ERRORLEVEL% 4 GOTO SiteD
            IF %ERRORLEVEL% 3 GOTO SiteC
            IF %ERRORLEVEL% 2 GOTO SiteB
            IF %ERRORLEVEL% 1 GOTO SiteA
            
            :SiteA
            sdclient /f /o /p="http://%CoreServer%/landesk/files/sitea.cfg"
            rename sitea dosmenu.cfg
            IF %ERRORLEVEL% LSS 0 GOTO getmenu
            GOTO runmenu
            
            
            :SiteB
            sdclient /f /o /p="http://%CoreServer%/landesk/files/siteb.cfg"
            rename siteb dosmenu.cfg
            IF %ERRORLEVEL% LSS 0 GOTO getmenu
            GOTO runmenu
            
            
            :SiteC
            sdclient /f /o /p="http://%CoreServer%/landesk/files/sitec.cfg"
            rename sitec dosmenu.cfg
            IF %ERRORLEVEL% LSS 0 GOTO getmenu
            GOTO runmenu
            
            
            :SiteD
            sdclient /f /o /p="http://%CoreServer%/landesk/files/sited.cfg"
            rename sited dosmenu.cfg
            IF %ERRORLEVEL% LSS 0 GOTO getmenu
            GOTO runmenu
            
            :fail
            echo "Failed to get menu.  Verify any network drivers, DHCP settings, and name resolution for %CoreServer%."
            pause
            goto end
            
            :runmenu
            RunBatch 500 X:\LDClient PxeMenu dosmenu.cfg
            
            :end

             

             

             

             

            Ultimately it would be a "menu" for your PXE menu, then you wouldn't need to manage different WinPE images.

             

            Hope I didn't completly confuse you, sometimes my mind just goes... so i go with it..

            • 3. Re: Different PXE boot menus for different PXE Proxy reps?
              Apprentice

              Both are great ideas, I'll have to think over how and what to do, thank you!

              • 4. Re: Different PXE boot menus for different PXE Proxy reps?
                Jared Barneck SupportEmployee

                I would be a nice feature to be able to create separate PXE Boot Menus in the GUI.  You make time to submit that in the ER portal.

                 

                It would also be nice to add a GUI for deploying the PXE Rep (instead of just having a script) where the PXE Boot menu is selected.  Sort of like how we create the Secure PXE Rep.