Powershell Win32_StartupCommand是否未显示所有条目?
如果在我的系统上运行“系统配置”(msconfig.exe),我会看到三个条目Powershell Win32_StartupCommand是否未显示所有条目?,powershell,wmi,startup,Powershell,Wmi,Startup,如果在我的系统上运行“系统配置”(msconfig.exe),我会看到三个条目 平行工具 Java和 升降箱 但如果我运行以下powershell脚本: $computer = "LocalHost" $namespace = "root\CIMV2" $results = Get-WmiObject -class Win32_StartupCommand -computername $computer -namespace $namespace 我只得到dropbox条目。Win3
- 平行工具
- Java和
- 升降箱
$computer = "LocalHost"
$namespace = "root\CIMV2"
$results = Get-WmiObject -class Win32_StartupCommand -computername $computer -namespace $namespace
我只得到dropbox条目。Win32_startup命令不应该显示所有条目吗?
据我所知,来自
HKEY\U LOCAL\U MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
的文件未被Win32\U StartupCommand
列出
该博客称以下两个地址仅在64位系统中
HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run(仅在64位系统上)
HKCU\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run(仅在64位系统上)
因此,我认为您也必须在代码中包含它们。Win32_StartupCommandWMI类列出了
\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
键的条目,因此请检查此键的内容。在我的情况下,我还可以找到启动菜单中的条目。是的,但我正在试图找出原因,以及如何让他们出现。