Setting the IP Address from the Command Line
When you are building a Windows server from the command line, GUI interfaces are not available. Here are two methods of setting IP configuration from the command line.
When you are building a Windows server from the command line, GUI interfaces are not available. Here are two methods of setting IP configuration from the command line.
If you’re standing up a new domain, this bit of PowerShell will get you there without the need to run through the wizard.
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 »
Using PowerShell to copy files to guest virtual machines is pretty handy, but there is a prerequisite before you can do it.
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.
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.
Everyone has heard of PowerShell. If you haven’t crawl out of that cave you have been living in, and start using PowerShell to administer your networked computers.
When performing certain operations, such as registry edits, you may be directed to restart Windows. However, some items only require the restart of the Windows Explorer process. Here’s how to do it.
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.
A function to create a new Hyper-V virtual machine using WMI, with the ability to create the VM on a remote host. Also allows for specifiying the target location.