What happens when we run into the problem where we stop a process in PowerShell? Check out the discussion in the video Starting and Stopping Processes With PowerShell. As you can see, we test stopping a process with PowerShell - in this case Notepad.
Some examples we see in the video:
- We start several instances of Notepad
- We stop Notepad - what happens to all instances?
- What would this mean in other contexts?
For mastering data transformation from one form to another form, check out the highest-rated Automating ETL course on Udemy. For a coupon to the course, check out the trailer video on the channel SQL In Six Minutes.
While this may be a convenient command to use, we see what happens when we use it without considering what else may happen. In our example, notice what happened when we ran the command. Consider what this would mean in a context where we stopped a running process where multiple processes were running and we only wanted to stop one of them?
One regular point I like to remind my audience, especially as of recent: we can often solve the same problem with a variety of techniques. While we look at one or two ways to solve the problem, these aren't the only ways we can approach this problem. The most appropriate solution to a problem is one in which you can troubleshoot quickly in the future and one in which you understand. Be careful about applying solutions that solve a problem, but introduce new problems in the future.
A great re-occuring example of this is my discussion on alerting best practices. There are a variety of alerts everywhere for everything in today's development environments, but many of these alerts cause more issues than they solve (one of which is creating a distraction). Be careful about "easy" solutions which introduce bigger problems. Know your environment and where to apply the best solution. Of course, all these being written, it is helpful to learn new techniques to solve problems because they may be useful in the future.