Skip to content

Commit 797cb2f

Browse files
authored
Replace % with ForEach-Object
1 parent 77fd8fa commit 797cb2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AzureLocal/Deploy_Node.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)