PowerTip: Use PowerShell to Find Command Line of Processes

Summary: Learn how to use Windows PowerShell to find the command line of processes.  How can I find the command line that was used to launch a process that is running on my system?  Use the Get-CimInstance cmdlet, the Win32_Process WMI class, and the CommandLine property: gcim win32_process | select commandline Note  gcim is an alias for Get-CimInstance.


Working with Windows Startup Processes and PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell to examine startup processes in Windows 10. Microsoft Scripting Guy, Ed Wilson, is here. This morning I am playing with the Xbox One Smart Glass app on Windows 10. I have used the app since it was in beta, and I just got my Xbox…


PowerTip: Find Processes with High Priority

Summary: Learn how to use Windows PowerShell to find processes that have a high priority.  How can I use Windows PowerShell to quickly see what processes have a high priority or an above normal priority?  Open Windows PowerShell with Admin rights, use the Get-Process cmdlet to return processes, and filter            processes that…


Use PowerShell to Repeatedly Terminate Specific Processes

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to terminate processes that start at random times.  Hey, Scripting Guy! I have a question that I hope you can answer. It seems that there are several processes that keep starting on my computer running Windows 8.1. That eat up lots of resources, and I…


Use PowerShell to Monitor for Process Startup

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to monitor for process startup. Microsoft Scripting Guy, Ed Wilson, is here. This morning, I spent a decent amount of time answering an email from a former colleague. I will actually share his email and my reply this coming weekend. In the meantime, I…


Use PowerShell to Start Random Processes at Random Times

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create random processes at random times.  Hey, Scripting Guy! I need to start a process that I pick randomly from a list. I would like these processes to start at random times so I can test my monitoring application. Is this something Windows…

1

Use PowerShell to Start a Process at Random Times

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to start a process at random intervals.  Hey, Scripting Guy! I have a rather unusual request. I am testing a new monitoring application, and I need a script that will start processes at random intervals so I can check the effectiveness of the solution….


PowerShell Mini-Scripting Games 2014: Answer 4

Summary: Here is the answer to Problem 4 in Windows PowerShell Mini-Scripting Games 2014. Microsoft Scripting Guy, Ed Wilson, is here. It is time for the answer to Problem 4 in Mini-Scripting Games 2014. Last week, I posted the complete Problem 4 description and task outline. Problem 4 synopsis Your manager tasked you with what…


Weekend Scripter: Use PowerShell to Hide Processes in Windows

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to easily hide processes in Windows. Microsoft Scripting Guy, Ed Wilson, is here. One of the things I used to have problems with when I was a network administrator, was running scripts on systems without a text box demanding attention from the user. In…

3

Weekend Scripter: Determine Process that Locks a File

Summary: Guest blogger, Adam Driscoll, talks about using Windows PowerShell to determine which process is locking a file. Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest blogger, Adam Driscoll… It’s quite common to run into the issue where a process is locking a particular file. Attempting to delete or open the…