Category Archives: Powershell

Use PowerShell to see who Rebooted a Server

Let’s say one of the production servers got rebooted unexpectedly and you would like to find out who rebooted it and when the server got rebooted. In PowerShell, you can take a look at the event log using the PowerShell one-liner command shown below. You don’t need to write a bunch of lines in a script and then… Read More »

Add Virtual Hard Disk to a Hyper-V VM

Adding a new virtual hard disk to a virtual Machine (VM) is something that needs to be done from time to time, with any hypervisor. This process will walk you through adding a new virtual hard drive to a VM with Hyper-V.

8 Useful PowerShell Quickies

In my current position, I use PowerShell quite a bit, but not just for automation of repetitive tasks. I thought I would take a few minutes to jot down a few one-offs that might be of use to other folks. Some of these might even be useful in larger scripts.

Stop-ProcessRemote

In an interesting design choice, Get-Process lets you work with processes on remote machines, but Stop-Process does not. This cmdlet uses WMI to stop a process on a remote machine.