PowerShell for Windows Admins:

Windows Server 2012


April 12, 2013  12:41 PM

Creating a new disk



Posted by: Richard Siddaway
Disks, PowerShell 3, Windows Server 2012

I really like Windows Server Core. The concept has come of age in Windows 2012.

I needed to add a new disk to a virtual machine  - that’s easy using the Hyper-V cmdlets. But what about formating the disk.

A module new to Windows 2012 & Windows can be used.  Its...

April 11, 2013  1:51 PM

Windows Server Backup



Posted by: Richard Siddaway
PowerShell 3, Windows Server 2012

Windows Server 2012 has a PowerShell enabled backup utility. When you enable the feature you get a module called WindowsServerBackup.  It has the cmldets you would expect for creating and managing backups. No surprise you may say as this was avialable in Windows 2008 R2.

The...


April 6, 2013  9:38 AM

AD Management in a Month of Lunches



Posted by: Richard Siddaway
Active Directory, Books, PowerShell 3, Windows Server 2012

The MEAP marches on with chapter 8 now released:

Chapter 8 – creating Group Policies

details from http://www.manning.com/siddaway3/


April 1, 2013  5:17 AM

Shutting down a remote computer



Posted by: Richard Siddaway
PowerShell 3, Windows Server 2012, WMI

PowerShell provides the Stop-Computer cmdlet for closing down a remote machine. I find this especially useful in my virtual test environment. I’ll have several machines running but won’t necessarily have logged onto them. Using Stop-Computer means that I can shut them down cleanly without...


March 11, 2013  2:07 PM

Network Adapters–Disable/Enable



Posted by: Richard Siddaway
PowerShell 3, Windows 8, Windows Server 2012, WMI

Last time we saw the Get-NetAdapter cmdlet from the NetAdapter module

PS> Get-NetAdapter | ft Name, InterfaceDescription, Status -a

Name    ...


March 4, 2013  2:23 PM

Network adapters



Posted by: Richard Siddaway
PowerShell 3, Windows 8, Windows Server 2012, WMI

The WMI classes Win32_NetworkAdapter and Win32_NetworkAdapterConfiguration have seen a lot of use over the years. They can be a bit fiddly to use which is why the NetAdapter module in Windows 8/2012 is a so welcome.

Lets start by looking at basic information gathering

PS>...


February 27, 2013  2:15 PM

Filter or LDAP filter



Posted by: Richard Siddaway
Active Directory, PowerShell 3, Windows Server 2012

Many of the Microsoft AD cmdlets have a –Filter and an –LDAPFilter parameter.  So what’s the difference?

PS> Get-Help Get-ADUser -Parameter *Filter*

-Filter <String>
    Specifies a query string that retrieves Active Directory objects....


February 21, 2013  1:54 PM

Creating a Windows 2012 Domain Controller



Posted by: Richard Siddaway
Active Directory, PowerShell 3, Windows Server 2012

I decided to replace one of the DCs in my test environment with a Windows 2012 Server Core machine. Server Core has really come of age in Windows 2012 – its easy to configure.

I’ve covered configuring a server before but to recap:

  • Rename the machine – use...


January 17, 2013  1:49 PM

Starting virtual machines for WSUS



Posted by: Richard Siddaway
Hyper-V, Windows Server 2012, WSUS

My test environment usually has a dozen or so machines at any one time. Some of these are short lived and used for a particular piece of testing – others are kept for  years. I decided that I wanted to keep up to date on the patching of these virtual machines so installed WSUS on a...


December 12, 2012  2:18 PM

Creating Virtual machines #1: Creating the VM



Posted by: Richard Siddaway
Hyper-V, PowerShell 3, Virtualisation, Windows Server 2012

I’ve had two projects in mind for a while.  First I need to build a new WSUS server in my virtual environment & secondly I want to automate as much of the VM creation and configuration as possible. Oh – and I’m not using SC Virtual Machine Manager. 

I’ll be using...