支持 PowerShell 3 以上版本
If you’d like to know which programs start automatically on your machine, WMI may help:
如果您想了解有多少个程序随着您的机器自动启动,WMI 也许能帮上忙:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| PS C:\> Get-CimInstance -ClassName Win32_StartupCommand | Select-Object -Property Name, Location, User, Command, Description
Name : OneDrive Location : HKU\S-1-5-21-2012478179-265285931-690539891-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : DESKTOP-7AAMJLF\tobwe Command : "C:\Users\tobwe\AppData\Local\Microsoft\OneDrive\OneDrive.exe" /background Description : OneDrive
Name : Bluetooth Location : Common Startup User : Public Command : C:\PROGRA~1\WIDCOMM\BLUETO~1\BTTray.exe Description : Bluetooth
Name : Snagit 12 Location : Common Startup User : Public Command : C:\PROGRA~2\TECHSM~1\SNAGIT~1\Snagit32.exe Description : Snagit 12
Name : RTHDVCPL Location : HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : Public Command : "C:\Program Files\Realtek\Audio\HDA\RtkNGUI64.exe" -s Description : RTHDVCPL
...
|