61 31 241 Removing and installing/replacing engine hood contact switch
WARNING: This page is about a different car, the 2005 BMW 545i and 2004 BMW 545i. However, it is still accessible from the selected car via links, so may be relevant.
Unfasten plug connection (1) and disconnect.
Pull engine hood contact switch (2) in direction of arrow and feed out of microfilter air duct (3).