Partager via


ConfigMgr 2012 – Where’s my PXE CacheExpire gone!?

 

In ConfigMgr 2007 we had a registry key called CacheExpire which would allow a client to start a new PXE session after 60 minutes. The idea is, if a build is mandatory the cache will hold onto the session to ensure it doesn’t get into a rebuild loop.

It was a bit of a pain when you were developing/testing your OSD builds because if it failed, you had to wait for the cache to run out or clear it manually. So many engineers would change the key to 120 seconds or so.

HKLMSoftwareMicrosoftSMSPXE CacheExpire=120

I’ve recently been testing a new build in ConfigMgr 2012 using PXE as my boot method, and went in search of the CacheExpire value to speed up the process, and found its no longer there. In fact, the entire PXE key is missing.

The reason is quite simple, in ConfigMgr 2012 the PXE Service Point is no longer a separate role – it’s now integrated with the Distribution Point role. So I checked in the DP registry key for a CacheExpire… no luck.

HKLMSoftwareMicrosoftSMSDP

So I decided to try and create one and see how it went… bingo, my PXE Cache is now 120 seconds.

Fox the lazy, here’s the exported key & value

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftSMSDP]
"CacheExpire"="120"

Matt Shadbolt

Comments

  • Anonymous
    April 18, 2013
    Great find! It's funny the previous owner of our 2007 environment never figured this out, and it was one of my first "wins" over our environment once I inherited it. Now in 2012, I knew I had to add it to our environment because everyone depends on reimaging/reimporting etc... fairly quickly. Our PC Techs frequently are moving systems around to image, so one less thing for them to worry about. Thanks!

  • Anonymous
    October 18, 2013
    Awesome ! You save me a lot of time ! Thanks !

  • Anonymous
    March 09, 2015
    The script provided for lazy admins will create a RE_SZ key rather than a REG_DWORD key, thus it will not work.

  • Anonymous
    July 16, 2015
    So it should actually look like.....(for 2 minutes)

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftSMSDP]
    "CacheExpire"=dword:00000078