That is the actual PowerShell. It will stop any process named notepad. From: [email protected] [mailto:[email protected]] On Behalf Of J- P Sent: Thursday, September 10, 2015 2:17 PM To: NT Subject: RE: [NTSysADM] Power Shell commmands
If you dont mind , can you post the actual PS script to accomplish this? I feel real archaic still using batch files [Emoji] ________________________________ From: [email protected]<mailto:[email protected]> To: [email protected]<mailto:[email protected]> Subject: RE: [NTSysADM] Power Shell commmands Date: Thu, 10 Sep 2015 10:44:18 -0700 Stop-Process -processname notepad ________________________________ From: [email protected]<mailto:[email protected]> To: [email protected]<mailto:[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]<mailto:[email protected]> To: [email protected]<mailto:[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]<mailto:[email protected]>> To: [email protected]<mailto:[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<mailto:[email protected]> Enviada em: 09/09/2015 13:13 Para: NT System Admin Issues Discussion list<mailto:[email protected]> 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
