Knowledge Base Glossary       Exit
(how to) Search  

Browse by Category
Knowledge Base > Products > Image for Windows > Problem Solving > Rebooting the System after Imaging or Restoring in BartPE

Rebooting the System after Imaging or Restoring in BartPE

If you are running Image for Windows within BartPE and have found that the /rb command line switch does not work on your system, here is an alternative.  After creating the BartPE plugin, locate the file named autorun_ifwv2.cmd, and change its content to the following:

@echo off
Title IFW V2 AutoRun
start "" /wait /D%~d0\programs\ifwv2 %~d0\programs\ifwv2\imagew.exe
@%systemroot%\system32\nu2shell.exe -r
exit

The code above adds the /wait parameter to the imagew.exe command line, which forces the script to wait until Image for Windows exits before reading the next line in the script.  Also new is the nu2shell.exe -r line, which will reboot the system after imagew.exe has finished running.

How helpful was this article to you?


powered by Lore