我是 powershell 的初学者,我怀疑这将是一个简单的问题。我正在尝试执行以下命令,但它没有返回任何结果,我不明白为什么。
我正在尝试获取 bcdedit 的当前部分的描述。如果我做:
bcdedit /enum | select-string "identifier.*current" -context 0,3
它返回以下内容:
> identifier {current}
device partition=C:
path \WINDOWS\system32\winload.exe
description Windows 8.1
那么为什么以下内容不返回description Windows 8.1
?
bcdedit /enum | select-string "identifier.*current" -context 0,3 | select-string "description"
相反,它什么也不返回。
任何有关这方面的信息将不胜感激。