paraffin Posted December 15, 2008 Share Posted December 15, 2008 Hello GuysI am currently building an unattended x64 2003 R2 disk to use when building HP BL460c servers, I have successfully done this now with integrated Drivers, Updates but now I want to start removing the mundane jobs we do after the server is built.One of these is to create a 2nd partition (E:\) on the Raid 1 Logical Drive to do this I am using Diskpart to create, label and assign drive letter via a scriptExampleselect disk 1create partition primary size=1000assign letter=EThis works fine and silently but the problem comes when I want to format the drive, I run this cmd: "format E: /q /FS:NTFS /V:Applications" but it always asks if I am sure I want to format the drive.Does anybody know how to make the format occur silently without answering that question?CheersDavid Link to comment Share on other sites More sharing options...
jaclaz Posted December 15, 2008 Share Posted December 15, 2008 Have a look at this batch code:http://209.85.129.132/search?q=cache:pPvTS...howtopic%3D3229http://209.85.129.132/search?q=cache:SJZ9G...ost%26p%3D22320http://209.85.129.132/search?q=cache:ptcEy...D3229%26st%3D20(unfortunately boot-land is offline, should be back soon)jaclaz Link to comment Share on other sites More sharing options...
paraffin Posted December 16, 2008 Author Share Posted December 16, 2008 The code to pass the Yes to the question isECHO Y | FORMAT E: /FS:NTFS /Q /V:ApplicationsThanks for the help Link to comment Share on other sites More sharing options...
jaclaz Posted December 16, 2008 Share Posted December 16, 2008 Thanks for the helpYou are welcome. You might also be interested in this (integrating diskpart script inside batch):http://www.msfn.org/board/index.php?showto...26069&st=19http://www.msfn.org/board/index.php?showtopic=126727jaclaz 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