我有以下注册路径并且我知道它存在,我在这里做错了吗?!
$path = 'Registry::HKLM\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676\00000001'
Get-ChildItem $path | Get-ItemProperty | Select-Object -ExpandProperty "Service Name"
pshell 返回:
Get-ChildItem : Cannot find path 'HKLM\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\9375CFF0413111d3B88A00104B2A6676\00000001'
because it does not exist.