It`s all written in winpe.chm from WAIK.
Walkthrough: Walkthrough: Build a Windows Recovery Solution
All you do is to customize your WINPE to include WRE (Windows RecoveryEnvironment)
You then can take your version of WinPE and put it on HD for maintenance-purposes i.e. when not having install-DVD at hand.