Advertisement
Guest User

CleanDisk Batch File Method

a guest
Jul 27th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.88 KB | None | 0 0
  1. == Extra\CleanDisk\CleanDisk.bat ==
  2. @echo off
  3. echo Running DiskPart > X:\CleanDisk\CleanDisk.ran
  4. diskpart /s X:\CleanDisk\CleanDisk%1.txt
  5. echo Waiting 15 seconds
  6. X:\CleanDisk\timeout /t 15
  7.  
  8. == Extra\CleanDisk\CleanDiskGPT.txt ==
  9. SELECT DISK 0
  10. CLEAN
  11. CONVERT GPT NOERR
  12.  
  13. == Extra\CleanDisk\CleanDiskMBR.txt ==
  14. SELECT DISK 0
  15. CLEAN
  16. CONVERT GPT NOERR
  17.  
  18. == Notes ==
  19.  
  20. * Also copied timeout.exe to Extra\CleanDisk\timeout.exe
  21.  
  22. * Added Task Sequence in PreInstall -> New Computer Only after Validate, but before "Format and Partition Disk (MBR)
  23. * Named Task Sequence "Clean Disk (MBR)"
  24. * Command Line: X:\CleanDisk\cleandisk.bat MBR
  25. * Options: Task sequence variable IsUEFI not equals True
  26.  
  27. * Added a second Task Sequence after the previous:
  28. * Named Task Sequence "Clean Disk (GPT)"
  29. * Command Line: X:\CleanDisk\cleandisk.bat GPT
  30. * Options: Task sequence variable IsUEFI equals True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement