如何使用PowerShell查找和设置系统PATH

时间:2017-06-20 20:57:19

标签: powershell

为什么注册管理机构提供商不显示环境条目?我正在使用"以管理员身份运行"。 Get-ChildItem不返回任何项目。我错过了什么?

PS C:\src\t> ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] “Administrator”)
True
PS C:\src\t> Set-Location 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\'
PS HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\> Get-ChildItem
PS HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\>

0 个答案:

没有答案