Get current cpu usage for a process

I wanted to get the current CPU usage for certain processes, which appeared to be harder than I thought. The Get-Process command will give you CPU time and program start time, but will not tell you when the CPU was being used by the process. Thus if you use the previous information you got from … Continue reading Get current cpu usage for a process

Get logged on users and sessions

There are several ways to get a list of currently logged on users on a system, but only a few return the things that I like to know. In case of my servers, I'd like to know which users are connected to which session. One way to do so is by: Import-Module RemoteDesktop Get-RDUserSession but … Continue reading Get logged on users and sessions