File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Get-StoragePool | Where-Object IsPrimordial -eq $false | Set-StoragePool -IsRead
3737 Get-StoragePool | Where-Object IsPrimordial -eq $false | Get-VirtualDisk | Remove-VirtualDisk - Confirm:$false - ErrorAction SilentlyContinue
3838 Get-StoragePool | Where-Object IsPrimordial -eq $false | Remove-StoragePool - Confirm:$false - ErrorAction SilentlyContinue
3939 Get-PhysicalDisk | Reset-PhysicalDisk - ErrorAction SilentlyContinue
40- Get-Disk | Where-Object Number -ne $null | Where-Object IsBoot -ne $true | Where-Object IsSystem -ne $true | Where-Object PartitionStyle -ne RAW | Where-Object BusType -ne USB | % {
40+ Get-Disk | Where-Object Number -ne $null | Where-Object IsBoot -ne $true | Where-Object IsSystem -ne $true | Where-Object PartitionStyle -ne RAW | Where-Object BusType -ne USB | ForEach-Object {
4141$_ | Set-Disk - isoffline:$false
4242 $_ | Set-Disk - isreadonly:$false
4343$_ | Clear-Disk - RemoveData - RemoveOEM - Confirm:$false
You can’t perform that action at this time.
0 commit comments