Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell Win32_StartupCommand是否未显示所有条目?_Powershell_Wmi_Startup - Fatal编程技术网

Powershell Win32_StartupCommand是否未显示所有条目?

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

如果在我的系统上运行“系统配置”(msconfig.exe),我会看到三个条目

  • 平行工具
  • Java和
  • 升降箱

但如果我运行以下powershell脚本:

$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
键的条目,因此请检查此键的内容。在我的情况下,我还可以找到启动菜单中的条目。是的,但我正在试图找出原因,以及如何让他们出现。