Computer & Technology RelatedPost here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.
Welcome to ScoobyNet.com!
Welcome to the ScoobyNet.com Subaru forum.
You are currently viewing our forum as a guest, which gives you limited access to view most discussions and access our other features. By joining our community, at no cost, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is free, fast and simple, so please join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
Ive just done a build for xp that calls a batch file which installs extra packages once xp is built (office 2003, adobe etc). This runs fine but i was wondering wheather its possible to get a script to format the d: drive into NTFS silently. The initial setup of xp is ran manualy so we select to install xp on c drive and make 2 partitions (c and d). the answer file calls a script on a server which pulls the packages down like below.
ive searched on google and the like and know the syntax but i could only get it to format into a raw drive or prompt for input, this may be the only way as the potential nasty uses this could have but i thought id see if anyone knows different.
Main Reason for this is that a package that i install must have 2 partitions or it wont install. The D drive partition exists but isnt formatted or converted.
by doing that it still says "all data will be lost continue y/n"
i need it to be totally silent just before the package installs, i think it may not be possible. The partition is made but not formatted or converted. Answer file can auto partition but only to one drive
Creating DiskPart Scripts
You can create DiskPart scripts in text files by using any extension. To run a DiskPart script from the command line, type:
diskpart /s testscript.txt
To create a log file of the DiskPart session, type:
diskpart /s testscript.txt > logfile.txt
DiskPart does not have a format command. You must run the format command from the command prompt either manually or by using a batch file. The following example shows a batch file called Formatpart.bat and a DiskPart script called Createpart.txt. The batch file executes the DiskPart script and then runs the format command.
diskpart /s createpart.txt
format g: /fs:ntfs
select disk 1
create volume simple size 4096
assign letter g
cheers guys i was looking into diskpart but the scripts would have been an **** as i aint a demon scripter, im a muppet scripter
the one i mentioned works ( format D: /FS:NTFS /V:LABEL /Q /Y) and ive put the command half way down the program list as then if people click the batch file it doesnt format your drive straight away (if you have admin rights).
im looking now to add domin security group sids into local admin without being on the domain. Or doing it a much better way using RIS and riprep