How to start and stop processes in PowerShell?
问题 This should work fine in PowerShell older than 3. I need to run two processes: wuapp.exe and desk.cpl with ScreenSaver's tab. The problem I have is that once I start wuapp.exe the process name shows up in Task Manager as explorer.exe - the current code works for wuapp.exe but not on every machine. The other thing is when I kill rundll32 other apps will close also. What do you suggest? $wshell = New-Object -ComObject Wscript.Shell Start-Process wuapp.exe (New-Object -comObject Shell