what is alternative to findstr in WinPE 2.0. findstr is unrecognized in WinPE.
Once WinPE starts I want to wait untill ipaddress is being assigned to WinPE box.
Following is the script I found on the net:
rem if not defined Debug echo off
set i=0
:Loop
ipconfig.exe /all | findstr "Lease Obtained" > NUL & goto :Found
set /A i=%i%+1
echo DHCP address not found. Wait for 10 seconds and try again. [%i%/6]
sleep 10
if not "%i%"=="6" goto :Loop
:NotFound
@echo The DHCP address was not acquired.
@echo Please ensure that you have a netcard with a valid driver.
netcfg -v -s a
pause
goto :EOF
:Found
@echo Found!
