31.07.2013 Views

Hoofdstuk 1. IBM Rescue and Recovery - Lenovo

Hoofdstuk 1. IBM Rescue and Recovery - Lenovo

Hoofdstuk 1. IBM Rescue and Recovery - Lenovo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

:PELATER<br />

%custos%\ibmtools\utils\bmgr32.exe /bw<br />

msgbox.exe /msg "Systeem brengt bij volgende keer opstarten een fix aan" /head "Opnieuw opstarten" /ok<br />

goto NOT_DONE<br />

:inRR<br />

REM DISABLE NETWORKING<br />

msgbox.exe /msg "Netwerk wordt over 5 seconden uitgeschakeld. \n \n Netwerk wordt uitgeschakeld"<br />

/head "Netwerk wordt afgesloten" /timer 5<br />

NetWk.exe /d<br />

REM USE EGATHERER VALUES FOR CONDITIONAL BRANCH<br />

msgbox /msg "Register wordt gecontroleerd" /timer 5<br />

xmltool %ibmshare%\ibmegath.xml //EG_GATHERED_DATA/EG_INSTALLED_MICROSOFT_SOFTWARE/<br />

EG_SOFTWARE_PACKAGE[@ID=’DirectX’]/EG_VERSION GEQ \"4.09.00.0901\"<br />

if errorlevel 1 goto FILECOPY<br />

msgbox.exe /msg "Register wordt hersteld. \n \n Kies OK om door te gaan..." /head "Registerherstel" /ok<br />

reg.exe load HKLM\tempSW %custos%\windows\system32\config\SOFTWARE<br />

reg.exe add "HKLM\tempSW\<strong>IBM</strong>\eGatherer\Local Viewer\scans\banka" /v benke /d binki /f<br />

reg.exe add "HKLM\tempSW\<strong>IBM</strong>\eGatherer\Local Viewer\scans\banka" /v bonko /d bunku /f<br />

reg.exe delete "HKLM\tempSW\<strong>IBM</strong>\eGatherer\Local Viewer\scans\banka" /v bonko /f<br />

reg.exe unload HKLM\tempSW<br />

:FILECOPY<br />

msgbox /msg "Register is nu OK \n \n Fix wordt aangebracht" /timer 5<br />

copy payload.txt %custos%\<br />

REM RE-ENABLE NETWORK<br />

msgbox.exe /msg "Netwerk wordt over 5 seconden ingeschakeld. \n \n Netwerk wordt ingeschakeld"<br />

"Netwerk wordt geactiveerd" /timer 5<br />

NetWk.exe /e<br />

REM TAG IT<br />

echo 1 > %tagfile%<br />

REM REBOOT<br />

msgbox.exe /msg "Systeem start over 5 seconden opnieuw op..." /head "Opnieuw opstarten..." /timer 5<br />

reboot.exe<br />

goto NOT_DONE<br />

:ERROR<br />

:NOT_DONE<br />

exit 1<br />

:DONE<br />

NetWk.exe /e<br />

msgbox.exe /msg "Fix is aangebracht \n \n U kunt de normale werking nu hervatten."<br />

/head "Klaar!" /ok<br />

exit 0<br />

NETTEST.CMD<br />

PING –n 1 %1 > nul 2>&<br />

PAYLOAD.TXT<br />

een testbest<strong>and</strong><br />

van een af te leveren lading.<br />

Bijlage E. Antidote Delivery Manager-opdrachten - Naslag en voorbeelden 93

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!