This isn't a PowerShell problem. Does this help? diskpart-scripts-and-examples
Disk Partitions and Volumes without opening Explorer (Diskpart or PowerShell)
Hi,
I am creating disk layout using diskpart (and checked PowerShell as well) but as soon as I am creating a partition and pop-up appears to offer the disk format (like this).
Can we avoid this popup /disable etc.? Newly created volume should be formated via diskpart or PS.
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | Storage high availability | Other
2 answers
Sort by: Most helpful
-
-
Anonymous
2020-12-18T03:43:32.567+00:00 Hi,
You see this error because the boot sector of the partition is invalid. As this is newly created you can run
format quick
in diskpart to format this partition.Best Regards,
Ian Xue============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.