WinBatched
Technical User
I'm not seeing this but I know it's right in front of me (frustrating!!!)
I have a quick PS script that terminates an app begining with "wf" as follows ... Stop-Process -processname wf*
What I need to do is add some type of funtion (if statement,loop, ...) that looks for 'iexplore' before killing these processes. IF iexplore is present in the task list then the script would BREAK. I'm just getting error messages when i try to do what I think "should" work. Any help would be much appreciated. I'm very new to the PowerShell syntax.
I have a quick PS script that terminates an app begining with "wf" as follows ... Stop-Process -processname wf*
What I need to do is add some type of funtion (if statement,loop, ...) that looks for 'iexplore' before killing these processes. IF iexplore is present in the task list then the script would BREAK. I'm just getting error messages when i try to do what I think "should" work. Any help would be much appreciated. I'm very new to the PowerShell syntax.