weist123 Posted October 25, 2004 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"?
weist123 Posted October 25, 2004 Author 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]
weist123 Posted October 25, 2004 Author 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
oioldman Posted October 25, 2004 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?
SiMoNsAyS Posted October 25, 2004 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?
weist123 Posted October 29, 2004 Author 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
Mr.J!M Posted November 25, 2004 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?
SiMoNsAyS Posted November 25, 2004 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!
jamesas Posted January 19, 2005 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
Martin Zugec Posted January 19, 2005 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)
oioldman Posted July 5, 2005 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
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