exodia508766
New member
- Local time
- 1:07 PM
- Posts
- 24
- OS
- Windows 11
Im trying to add a custom command to Context Menu, but the command works in normal powershell window. Any help is appreciated.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOff]
"MUIVerb"="Close All Apps"
"icon"="imageres.dll,-5102"
"Position"="Bottom"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOff\command]
@="PowerShell -command "Get-Process | Where-Object {$_.MainWindowTitle -ne ''} | stop-process -Force"
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOff]
"MUIVerb"="Close All Apps"
"icon"="imageres.dll,-5102"
"Position"="Bottom"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOff\command]
@="PowerShell -command "Get-Process | Where-Object {$_.MainWindowTitle -ne ''} | stop-process -Force"
- Windows Build/Version
- 22621
My Computer
System One
-
- OS
- Windows 11
- Computer type
- Laptop
- Manufacturer/Model
- DELL Inspiron 16 5630
- CPU
- i5 1335U
- Memory
- 8