From a3eeed65a1d5469c45b86e614f34ace516fea83f Mon Sep 17 00:00:00 2001 From: farag2 Date: Sun, 6 Jan 2019 22:26:51 +0300 Subject: [PATCH] Update Win 10.ps1 --- Win 10.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Win 10.ps1 b/Win 10.ps1 index 49fe1621..7d3624ef 100644 --- a/Win 10.ps1 +++ b/Win 10.ps1 @@ -757,12 +757,12 @@ $DiskCount = (Get-Disk | Where-Object {$_.BusType -ne "USB"}).Number.Count IF ($DiskCount -eq 1) { # Один физический диск - $drive = (Get-Disk | Where-Object {$_.BusType -ne "USB" -and $_.IsBoot -eq $true} | Get-Partition | Get-Volume | Where-Object {$_.DriveLetter -ne $null}).DriveLetter + $_ + ':' + $drive = (Get-Disk | Where-Object {$_.BusType -ne "USB" -and $_.IsBoot -eq $true} | Get-Partition | Get-Volume | Where-Object {$_.DriveLetter -ne $null}).DriveLetter + ':' } Else { # Больше одного физического диска - $drive = (Get-Disk | Where-Object {$_.BusType -ne "USB" -and $_.IsBoot -eq $false} | Get-Partition | Get-Volume | Where-Object {$_.DriveLetter -ne $null}).DriveLetter | ForEach-Object {$_ + ':'} + $drive = (Get-Disk | Where-Object {$_.BusType -ne "USB" -and $_.IsBoot -eq $false} | Get-Partition | Get-Volume | Where-Object {$_.DriveLetter -ne $null}).DriveLetter + ':' } function KnownFolderPath {