rsbennett00 Posted August 12, 2006 Author Share Posted August 12, 2006 (edited) Ok that all makes sense when I think about what winpe, the opk and sysprep are intended to be used for and it also makes me think that since we're not sysprep'ing that the oemrunonce isn't going to do what we want. So we're now trying to use the [GuiRunOnce] section in the winnt.sif and I'll post results once we test that. I'm also thinking that further problems should probably be posted in the winpe forum now. Thanks for all your help so far JuMz. Edited August 12, 2006 by rsbennett00 Link to comment Share on other sites More sharing options...
rsbennett00 Posted August 17, 2006 Author Share Posted August 17, 2006 We got it!Hit the spacebar to boot to the dvd and it loads PE. Startnet takes off and asks if you want advanced options or the default. Hit advanced and it asks if you want to change the partitioning of the HD0 or just format your existing C: drive. Choose repartitioning and it asks how big you want the C: drive. The default option (most used in our environment) is repartition C: to 25gb and the rest to D:. From there it takes care of whatever choices you made, then copies needed files to the C: drive and kicks off the XP install. After XP finishes, then the rest of the auto-installs run and about 45 minutes later you have the following done:Installed Windows XP Pro with all possible updates (as of this date) into C:\windowsInstalled the entity specific FontsInstalled Adobe Acrobat Reader 7.08Installed Lotus Notes 7 clientInstalled Firefox 1.5Installed MS Office 2003Installed Sophos 5.12Installed Java Runtime 5.07Installed MS .net 1 with SP1Installed MS .net 2Update some drivers, stick it on the domain, copy in the notes id file, update Sophos and it's ready to be deployed to the end user. This is so simple we're really not going to need ghost anymore.Thanks for all your help. Link to comment Share on other sites More sharing options...
JuMz Posted August 17, 2006 Share Posted August 17, 2006 We got it!Hit the spacebar to boot to the dvd and it loads PE. Startnet takes off and asks if you want advanced options or the default. Hit advanced and it asks if you want to change the partitioning of the HD0 or just format your existing C: drive. Choose repartitioning and it asks how big you want the C: drive. The default option (most used in our environment) is repartition C: to 25gb and the rest to D:. From there it takes care of whatever choices you made,...What scripts / interface are you using to do all this? Sounds interesting, right now, my install doesn't have any custom options like this...startnet goes, factory -winpe, then XP installs, based on the same unattend.txt for all my machines... Link to comment Share on other sites More sharing options...
rsbennett00 Posted August 17, 2006 Author Share Posted August 17, 2006 Here's my startnet.bat. This pretty much covers everything, you can imagine what my diskpart scripts do from here.@ECHO OFFfactory -winpe@echo diskpart /s x:\listpart1.txtset def=set /p def=Press 1 for advanced options or 2 for the defaults. (Press C to cancel)if '%def%'=='1' goto advancedif '%def%'=='2' goto installif '%def%'=='c' goto cancelrem choice /c:12 /t:2,30 Press 1 for advanced options or 2 for the defaults. You have 30 seconds to comply.rem if errorlevel 2 goto size25rem if errorlevel 1 goto advanced:advancedECHO WARNING! Data loss is imminent.set adv=diskpart /s x:\listpart1.txtset /p adv=Would you like to repartition the primary Hard Drive? (Press C to cancel)if '%adv%'=='c' goto cancelif '%adv%'=='y' goto sizeif '%adv%'=='n' goto install:cancelECHO You have cancelled this script.pauseexit:sizeECHO WARNING WARNING WARNINGECHO This script is about to wipe out the first Hard Drive in this system. It is HIGHLY recommended any secondaryECHO Hard Drives be disconnected during this process.ECHO CTRL-C now and terminate this program to prevent data loss.diskpart /s x:\listdisk0.txtECHO Please choose from the following sizes for C:, 20, 25, 30, 35, 40, 50 GB or max.set sizec=set sized=set /p sizec=Define the size you would like the C: partition in gigabytes. Use max for maximum.goto whatsize:whatsizeif '%sizec%'=='max' goto maxcif '%sizec%'=='20' goto sizec20if '%sizec%'=='25' goto sizec25if '%sizec%'=='30' goto sizec30if '%sizec%'=='35' goto sizec35if '%sizec%'=='40' goto sizec40if '%sizec%'=='50' goto sizec50goto nosize:nosizeECHO Sorry, the size you chose for C: is not an option, please choose 20, 25, 30, 35, 40, 50 GB or max.goto size:maxcdiskpart /s x:\maxc.txtgoto install:sizec20diskpart /s x:\disk20.txtgoto dpart:sizec25diskpart /s x:\disk25.txtgoto dpart:sizec30diskpart /s x:\disk30.txtgoto dpart:sizec35diskpart /s x:\disk35.txtgoto dpart:sizec40diskpart /s x:\disk40.txtgoto dpart:sizec50diskpart /s x:\disk50.txtgoto dpart:dpartdiskpart /s x:\maxd.txtgoto install:installecho y|format c: /fs:ntfs /q >nulmd c:\installmd c:\distroxcopy x:\install\*.* c:\install /e /yxcopy x:\distro\*.* c:\distro /e /ycd\xppro\i386winnt32 /syspart:c: /dudisable /makelocalsource /s:x:\xppro\i386 /unattend:x:\xppro\i386\winnt.sifexit Link to comment Share on other sites More sharing options...
RickSteele Posted August 17, 2006 Share Posted August 17, 2006 Have you tried Terabyte? I've been using for 2 years now and it has operated flawlessly.http://www.terabyteunlimited.com/ Link to comment Share on other sites More sharing options...
JuMz Posted August 17, 2006 Share Posted August 17, 2006 Thank you for that. I will give it a whirl (with some variations). Seems that we have helped each other in this situation! Link to comment Share on other sites More sharing options...
Takeshi Posted August 17, 2006 Share Posted August 17, 2006 I don't quite understand this part of the script:set def=set /p def=Press 1 for advanced options or 2 for the defaults. (Press C to cancel)if '%def%'=='1' goto advancedif '%def%'=='2' goto installif '%def%'=='c' goto cancelIf the user chooses 2, then the script goes to the install section directly? Link to comment Share on other sites More sharing options...
rsbennett00 Posted August 17, 2006 Author Share Posted August 17, 2006 Woops, that was a test copy while we were trying to get the choice command working, which we did this morning. Here's our perfected startnet.cmd.@ECHO OFFfactory -winpe@echo diskpart /s x:\listpart1.txtchoice /c:12 /n /t:2,20 Press 1 for advanced options or 2 for defaults. You have 20 seconds to comply.if errorlevel 2 goto sizec25if errorlevel 1 goto advanced:advancedECHO WARNING! Data loss is imminent.set adv=diskpart /s x:\listpart1.txtset /p adv=Would you like to repartition the primary Hard Drive? (Press C to cancel)if '%adv%'=='c' goto cancelif '%adv%'=='y' goto sizeif '%adv%'=='n' goto install:cancelECHO You have cancelled this script.pauseexit:sizeECHO WARNING WARNING WARNINGECHO This disk is about to wipe out the first Hard Drive in this system. It is HIGHLY recommended any secondaryECHO Hard Drives be disconnected during this process.ECHO CTRL-C now and terminate this program to prevent data loss.diskpart /s x:\listdisk0.txtECHO Please choose from the following sizes for C:, 20, 25, 30, 35, 40 or 50 GB.set sizec=set sized=set /p sizec=Define the size you would like the C: partition in gigabytes. Use max for maximum.goto whatsize:whatsizeif '%sizec%'=='max' goto maxcif '%sizec%'=='20' goto sizec20if '%sizec%'=='25' goto sizec25if '%sizec%'=='30' goto sizec30if '%sizec%'=='35' goto sizec35if '%sizec%'=='40' goto sizec40if '%sizec%'=='50' goto sizec50goto nosize:nosizeECHO Sorry, the size you chose for C: is not an option, please choose 20, 25, 30, 35, 40 or 50 GB.goto size:maxcdiskpart /s x:\maxc.txtgoto install:sizec20diskpart /s x:\disk20.txtgoto dpart:sizec25diskpart /s x:\disk25.txtgoto dpart:sizec30diskpart /s x:\disk30.txtgoto dpart:sizec35diskpart /s x:\disk35.txtgoto dpart:sizec40diskpart /s x:\disk40.txtgoto dpart:sizec50diskpart /s x:\disk50.txtgoto dpart:dpartdiskpart /s x:\maxd.txtgoto install:installecho y|format c: /fs:ntfs /q >nulmd c:\installmd C:\distroxcopy x:\install\*.* c:\install /e /yxcopy x:\distro\*.* c:\distro /e /ycd\xppro\i386winnt32 /syspart:c: /dudisable /makelocalsource /s:x:\xppro\i386 /unattend:x:\xppro\i386\winnt.sifexit Link to comment Share on other sites More sharing options...
rsbennett00 Posted August 17, 2006 Author Share Posted August 17, 2006 Have you tried Terabyte? I've been using for 2 years now and it has operated flawlessly.http://www.terabyteunlimited.com/Which product and to do what? Link to comment Share on other sites More sharing options...
Takeshi Posted August 17, 2006 Share Posted August 17, 2006 Many thanks for the updated script.Have you considered, rather than having a selection of sizes, how about allowing for a custom specified size on the spot, if that's possible to do (write to a temp diskpart.txt)? Just wondering... Link to comment Share on other sites More sharing options...
RickSteele Posted August 17, 2006 Share Posted August 17, 2006 Have you tried Terabyte? I've been using for 2 years now and it has operated flawlessly.http://www.terabyteunlimited.com/Which product and to do what?BootItNg to do any and all your partitioning/multi-boot chores, Image for DOS/Image for Windows to do any and all backup, image, diskcopy etc. Terabyte also has a BartPe plugin to work on the bootable disc. BING is fully customizable; ie: custom scripts etc. Email the author for more indepth at Terabyte's website; inexpensive but, powerful and accurate; well worth checking out anyways. Link to comment Share on other sites More sharing options...
rsbennett00 Posted August 18, 2006 Author Share Posted August 18, 2006 Many thanks for the updated script.Have you considered, rather than having a selection of sizes, how about allowing for a custom specified size on the spot, if that's possible to do (write to a temp diskpart.txt)? Just wondering...Hmm, is that possible? Just off the top of my head something like...set cpartsize=set /p cpartsize=Type a size for the C: Partition in megabytes.diskpart /s x:\disk0.txtThen disk0.txt would look something like this?select disk 0cleancreate partition primary size=%cpartsize%select partition 1activeassign letter=ccreate partition primaryWould that work? I may have to try it next week when I get some free time. Link to comment Share on other sites More sharing options...
Takeshi Posted August 20, 2006 Share Posted August 20, 2006 Looks promising, thanks. I think it would work. Awaiting your testing...or when I get round to doing it... Link to comment Share on other sites More sharing options...
rsbennett00 Posted August 21, 2006 Author Share Posted August 21, 2006 Looks promising, thanks. I think it would work. Awaiting your testing...or when I get round to doing it...I can't seem to find a way for diskpart to use variables. So now I'm trying to create a ramdrive and use the copy command to create the diskpart script file. Will post after further testing. Link to comment Share on other sites More sharing options...
rsbennett00 Posted August 21, 2006 Author Share Posted August 21, 2006 Since I can't figure out how to get diskpart to use variables I had to add a ramdrive to the script and change startnet accordingly. Here's my new startnet:@ECHO OFFfactory -winpe@echo @echo @echo @echo !!WARNING!! This script will wipe out data on the primary Hard Drive. !!WARNING!!@echo .@echo .diskpart /s x:\listpart1.txt@echo .choice /c:123 /n /t:3,5 Press 1 for advanced options or 2 for defaults. You have 20 seconds to comply.if errorlevel 3 goto 15secsif errorlevel 2 goto defaultif errorlevel 1 goto advanced:15secs@echo @echo choice /c:123 /n /t:3,10 Press 1 for advanced options or 2 for defaults. You have 15 seconds to comply.if errorlevel 3 goto 5secsif errorlevel 2 goto defaultif errorlevel 1 goto advanced:5secs@echo @echo choice /c:12 /n /t:2,5 Press 1 for advanced options or 2 for defaults. You have 5 seconds to comply.if errorlevel 2 goto defaultif errorlevel 1 goto advanced:advancedECHO WARNING! Data loss is imminent.set adv=diskpart /s x:\listpart1.txt@echo .set /p adv=Would you like to repartition the primary Hard Drive? (Press C to cancel)if '%adv%'=='c' goto cancelif '%adv%'=='y' goto sizeif '%adv%'=='n' goto install@echo Invalid choice.goto advanced:defaultdiskpart /s x:\default.txtgoto install:cancelECHO You have cancelled this script.pauseexit:sizeset cpartsize=set /p cpartsize=Type a size for the C: Partition in gigabytes. (Press C to cancel)if '%cpartsize%'=='c' goto cancel@echo create partition primary size=%cpartsize%000>z:\disk0_2.txtcopy x:\disk0_1.txt+z:\disk0_2.txt+x:\disk0_3.txt z:\disk0.txt >nuldiskpart /s z:\disk0.txtgoto install:installecho y|format c: /fs:ntfs /q >nulmd c:\installmd C:\distroxcopy x:\install\*.* c:\install /e /yxcopy x:\distro\*.* c:\distro /e /ycd\xppro\i386winnt32 /syspart:c: /dudisable /makelocalsource /s:x:\xppro\i386 /unattend:x:\xppro\i386\winnt.sifexit 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