Closed skycommand closed 11 months ago
/cc @anmenaga I guess it comes from WinCompat feature.
not related to WinCompat; at least v2
of the Storage
module declares compatibility with PS Core CompatiblePSEditions = @('Desktop', 'Core')
and is loaded directly into PS Core with repro:
...
VERBOSE: 4096 bytes in each allocation unit.
VERBOSE: 58170335 total allocation units on disk.
VERBOSE: 43118095 allocation units available on disk.
NoErrorsFound
PS C:\> Get-Module -Name Storage
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Manifest 2.0.0.0 Storage {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-StorageFaultDomain…}
PS C:\> (Get-Module -Name Storage).Path
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Storage\Storage.psd1
Looks like CIM object is calling some native app and transimts its output as Verbose message. Here is a repro using CIM cmdlets:
$VerbosePreference = 'Continue';
$Volume = Get-CimInstance -Namespace "root\Microsoft\Windows\Storage" -ClassName "MSFT_Volume" | Select-Object -First 1
Invoke-CimMethod -InputObject $Volume -Arguments @{Scan=$True} -MethodName "Repair"
Should we fix this in Engine? Escape '\n' in verbose out?
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.
Bug summary
The
Repair-Volume
cmdlet adds explicit CR+LF at the end of each of every message in the Verbose stream. As a result, the verbose report is very difficult to read.This issue is a regression from PowerShell 5.1.
Steps to reproduce
Expected behavior
Actual behavior
Environment data