Jump to content

Recommended Posts

Posted

try this site in click

Scenario Sample Script

Disk 0: 20 GB basic disk

C: 4 GB NTFS system volume (already created)

D: 16 GB NTFS data volume (uses the remaining unallocated space on the disk)

Disk 1: 60 GB basic disk

R: 60 GB NTFS data volume (uses all unallocated space on the disk)

In Createpart.txt:1

select disk 0

create partition primary

assign letter d

select disk 1

create partition primary

assign letter r

In Formatpart.bat:

diskpart/s createpart.txt

echo y | format d: /fs:ntfs

echo y | format r: /fs:ntfs

1 You do not need to specify the DiskPart size= parameter in this example because the partitions use all the unallocated space on their respective disks.

You can use Windows Setup Manager to specify Formatpart.bat by following the example shown in Figure 12.5. Programs that you enter in the Command to run box appear in the [GuiRunOnce] section of Unattend.txt or Sysprep.inf.

Figure 12.5 Configuring Run Once in Windows Setup Manager

[GuiRunOnce] contains a list of commands that Windows XP Professional executes the first time a user logs on to the computer after GUI-mode Setup has completed. Each line specifies a command to be executed by the GuiRunOnce registry entry. For example:

[GuiRunOnce]

Command0 = c:\formatpart.bat

prkb_03.gif


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...