Jump to content

Script to Format All Disk


Recommended Posts

Hello I am look for script that will format all disk in winpe use diskpart

The main Issue I have with my current disk partion script if the disk number is wrong It does,nt end up assign disk letter to it I can,nt procide with the Copy file to install software

Some Time Disk is listed as disk 0 other disk 1 also volume names

Link to comment
Share on other sites


If you use vbscript or powershell, you can use the Win32_LogicalDisk class to determine which disks are fixed local disks (hard disks), and then use diskpart to clean/create/set partitions and format them.

Link to comment
Share on other sites

my current disk partion script
My suggestion would be that you provide that script in order that we have the opportunity to fix, adjust accordingly or rewrite it.
Link to comment
Share on other sites

Hello I am look for script that will format all disk in winpe use diskpart

The main Issue I have with my current disk partion script if the disk number is wrong It does,nt end up assign disk letter to it I can,nt procide with the Copy file to install software

Some Time Disk is listed as disk 0 other disk 1 also volume names

at the moment am just use disk part

SEL DIS 0

CLEAN

CRE PAR PRI

ACT

SEL PART 1

format FS=NTFS QUICK

sel volume 0

assign

sel volume 1

assign

EXIT

Link to comment
Share on other sites

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...