Jump to content

how to:install Recovery Console in "RunonceEx"


weist123

Recommended Posts


is this correct?

cmdow @ /HID
@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Recovery Console to harddisk" /f
[COLOR=red]REG ADD %KEY%\005 /V 1 /D "%systemroot%\\winnt32 /cmdcons /unattend" /f[/COLOR]

Link to comment
Share on other sites

sorry !

post error.

cmdow @ /HID
@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Recovery Console to harddisk" /f
REG ADD %KEY%\005 /V 1 /D "%systemroot%\winnt32 /cmdcons /unattend" /f

Link to comment
Share on other sites

is this correct:

cmdow @ /HID
@echo off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:


SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Recovery Console to harddisk" /f
REG ADD %KEY%\005 /V 1 /D "%cdrom%\i386\winnt32 /cmdcons /unattend" /f

Link to comment
Share on other sites

  • 4 weeks later...

This code is OK?

cmdow @ /HID
@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Recovery Console to harddisk" /f
REG ADD %KEY%\005 /V 1 /D "%systemroot%\winnt32 /cmdcons /unattend" /f

i don't want to use %cdrom% variable.

I'am using windows 2000 not xp. Can you confirm that code?

Link to comment
Share on other sites

@Mr.J!M wrong code, winnt32.exe is ALWAYS on the %CDROM%\i386\ dir. correct code *should* look like...

@echo off
cmdow @ /HID

FOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\CD.TXT SET CDROM=%%d
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Recovery Console" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\i386\winnt32.exe /cmdcons /unattend"

Warning! this is untested!

Link to comment
Share on other sites

  • 1 month later...

hey guys did anyone test this and will it work on my win2k3 disk

PS is there any security risk in having this installed

PSS i noticed that it migrates drivers into it and stops at some points saying the mass torage device can be supported is there a way to supress that

Link to comment
Share on other sites

2Simon: Yep, they repaired it in SP2 as far as I remember... It was nice bug :)

2jamesas: Nope, there isnt...

2all: Another way is to include cmdcons directory in $oem$ and just modify boot.ini... I included this procedure in my boot medium, it will copy from dos this directory to HDD and then it will boot from recovery NT medium (recovery console enabled + debug mode enabled)

Link to comment
Share on other sites

  • 5 months later...

I also noticed it would fail unless i had the WINNTUPG folder on my UA CD. Kept saying it couldn't find a required file, even though installs fine when you click ok to accept.

So added the WINNTUPG to CD, (1.9Mb) and installed no issues then.

Just thought I'd add this incase any body else had any problems

Edited by oioldman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...