SHOW:
|
|
- or go back to the newest paste.
| 1 | echo VHD Parent Resetter created by Wolfgang Unger and modified by ZiroKyl http://9b.asoiu.com/?p=2793 | |
| 2 | ||
| 3 | - | bcdedit /default {e3ccf963-9152-11e2-ad48-829adb767c32}
|
| 3 | + | REM ######################### |
| 4 | REM Variables | |
| 5 | REM ######################### | |
| 6 | set VHD_Drive=%~d0 | |
| 7 | set VHD_Parent=VHD\PROJECTOR_PC.VHD | |
| 8 | set VHD_ParentGUID={e3ccf963-9152-11e2-ad48-829adb767c32}
| |
| 9 | REM ######################### | |
| 10 | ||
| 11 | bcdedit /default %VHD_ParentGUID% | |
| 12 | ||
| 13 | bcdedit /set %VHD_ParentGUID% device vhd=[%VHD_Drive%]\%VHD_Parent% | |
| 14 | bcdedit /set %VHD_ParentGUID% osdevice vhd=[%VHD_Drive%]\%VHD_Parent% | |
| 15 | ||
| 16 | echo Done. |