weist123 Posted October 25, 2004 Share Posted October 25, 2004 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"? Link to comment Share on other sites More sharing options...
weist123 Posted October 25, 2004 Author Share Posted October 25, 2004 is this correct?cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG 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 More sharing options...
weist123 Posted October 25, 2004 Author Share Posted October 25, 2004 sorry !post error.cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Recovery Console to harddisk" /fREG ADD %KEY%\005 /V 1 /D "%systemroot%\winnt32 /cmdcons /unattend" /f Link to comment Share on other sites More sharing options...
oioldman Posted October 25, 2004 Share Posted October 25, 2004 A quick glance looks ok.Where did you get this snippet and does it actually works? I thought an install needed the XP CD? Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted October 25, 2004 Share Posted October 25, 2004 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? Link to comment Share on other sites More sharing options...
weist123 Posted October 29, 2004 Author Share Posted October 29, 2004 is this correct:cmdow @ /HID@echo offIF 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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Recovery Console to harddisk" /fREG ADD %KEY%\005 /V 1 /D "%cdrom%\i386\winnt32 /cmdcons /unattend" /f Link to comment Share on other sites More sharing options...
Mr.J!M Posted November 25, 2004 Share Posted November 25, 2004 This code is OK?cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Recovery Console to harddisk" /fREG ADD %KEY%\005 /V 1 /D "%systemroot%\winnt32 /cmdcons /unattend" /fi 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 More sharing options...
SiMoNsAyS Posted November 25, 2004 Share Posted November 25, 2004 @Mr.J!M wrong code, winnt32.exe is ALWAYS on the %CDROM%\i386\ dir. correct code *should* look like...@echo offcmdow @ /HIDFOR %%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=%%dSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Recovery Console" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\i386\winnt32.exe /cmdcons /unattend"Warning! this is untested! Link to comment Share on other sites More sharing options...
Mr.J!M Posted November 25, 2004 Share Posted November 25, 2004 Ok i will it tomorrow Thanks Simonsays Link to comment Share on other sites More sharing options...
jamesas Posted January 19, 2005 Share Posted January 19, 2005 hey guys did anyone test this and will it work on my win2k3 diskPS is there any security risk in having this installedPSS 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 More sharing options...
Martin Zugec Posted January 19, 2005 Share Posted January 19, 2005 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 More sharing options...
oioldman Posted July 5, 2005 Share Posted July 5, 2005 (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 July 5, 2005 by oioldman Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now