Created
July 28, 2020 14:08
-
-
Save omersiar/8bc8390329869259fb9972c5a041e767 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Foreach ($i in (Get-Disk).Number | Where-Object {$_ -gt 1}) { Get-Disk $i | Clear-Disk -RemoveData -Confirm:$false; Initialize-Disk -Number $i; Get-Disk $i | New-Partition -UseMaximumSize -AssignDriveLetter | Format-Volume -Confirm:$false} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment