There is no script; that one-liner will kill the named process. From: [email protected] To: [email protected] Subject: RE: [NTSysADM] Power Shell commmands Date: Thu, 10 Sep 2015 14:16:55 -0400
If you dont mind , can you post the actual PS script to accomplish this? I feel real archaic still using batch files 😩 From: [email protected] To: [email protected] Subject: RE: [NTSysADM] Power Shell commmands Date: Thu, 10 Sep 2015 10:44:18 -0700 Stop-Process -processname notepad From: [email protected] To: [email protected] Subject: RE: [NTSysADM] Power Shell commmands Date: Thu, 10 Sep 2015 11:59:46 -0400 I do it using taskkill with a batch file, that allows you to use image name rather than PID I would think that option is also available PS as well Here is how I use it taskkill /f /im vlc.exe Date: Thu, 10 Sep 2015 15:39:11 +0000 From: [email protected] To: [email protected] Subject: Re: [NTSysADM] Power Shell commmands Thanks but what I'm looking to do is script the opening of a Remote App window then script the closing of the same window. It looks like stop-process relies on the process ID and that changes every time a Remote App window is opened. From: "Rubens Almeida Almeida" <[email protected]> To: [email protected] Sent: Wednesday, September 9, 2015 4:51:55 PM Subject: RE: [NTSysADM] Power Shell commmands Get-process and stop-process ? De: Steve Norton Enviada em: ‎09/‎09/‎2015 13:13 Para: NT System Admin Issues Discussion list Assunto: [NTSysADM] Power Shell commmands Is there a PS command that will close the Remote App window that running C:\Windows\system32\remoteprograms.msc creates? Thanks. Steve
