Jump to content

how to:install Recovery Console in "RunonceEx"


Recommended Posts

Posted

hi!

THE MS provided a unattend install method in [GuiRunOnce] of winnt.sif:

Command1="path\winnt32 /cmdcons /unattend"

my question is what 's the code in "RunonceEx"?

and how can i define "path"?


Posted

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]

Posted

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

Posted

i remember seeing a vulnerability in the recovery console that let a guy with a win2k install disk own administrative priviledges... do any1 know if this was solved with sp2 or before?

Posted

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

  • 4 weeks later...
Posted

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?

Posted

@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!

  • 1 month later...
Posted

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

Posted

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)

  • 5 months later...
Posted (edited)

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

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...