Когда я использую Diskpart в Powershell. Я получаю только 11 символов от лейбла. Как я могу получить доступ к полному имени?
$CusHost = "test-svr-101"
[string]$temp = Invoke-Command -Computername $CusHost -ScriptBlock {
$dpscript = @"
list volume
"@;
$dpscript | diskpart
}
$vols = $temp -split "\s(?=V)"
Вывод выглядит так:
![Powershell output](https://i.stack.imgur.com/xZgCQ.png)
не полное имя:
![Showing the full name of the disk](https://i.stack.imgur.com/x7MJv.png)