Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
645 B

  1. REM Diskpart1.cmd
  2. REM A demonstration of a simple way to start on OS installation from WinPE.
  3. REM First call Diskpart to clean/create the disk
  4. Diskpart /s diskpart1.txt
  5. REM Now format the freshly partitioned disk(s): Quick format with NTFS
  6. Format /fs:NTFS /q /y C:
  7. REM Connect to your network share
  8. Net use H: \\Machinename\Sharename /u:machinename\auth_user "Password"
  9. REM Now run setup VIA Winnt32
  10. REM Using Unattend file Unattend.txt
  11. REM The System Partition is C
  12. REM The Temp files location is C
  13. REM The path to the OS source files is h:\i386
  14. h:\i386\winnt32 /unattend:unattend.txt /syspart:c: /tempdrive:c: /s:h:\i386