No. You'd be in the OS running the command and trying to delete the OS. Assuming the command doesn't have a measure to not allow you to wipe the SYSTEM partition, it would start wiping the OS and probably blue screen. Typically, you would have a WinPE boot disk and boot to and then run the command since WinPE only exists in memory and you could wipe all disks. You can build a WinPE boot disk and add scripting support and inject the .BAT or PS1 that would wipe all partitions. You could also use DISKPART to clean and\or reformat the partitions.
↧