Category Archives: Windows Server 2012

New PowerShell console on Server Core

Server Core is great for reducing the footprint of your VMs – Nano server is smaller but it can’t be a domain controller One draw back to server core is that you only get a single console. If you hang … Continue reading

Posted in Powershell, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016 | Leave a comment

Don’t reinvent the wheel

Way back when I used to take Microsoft certification exams there were often questions of the form “Perform task X with the minimum of administrative effort” Most, if nor all, of the possible answers would be correct but the correct … Continue reading

Posted in Powershell, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016 | 1 Comment

DHCP scope lease time

I wanted to reduce the lease time on a DHCP scope $lt = New-TimeSpan -Hours 12Set-DhcpServerv4Scope -ScopeId 10.10.54.0 -LeaseDuration $lt You could even make it a one liner if you wished Set-DhcpServerv4Scope -ScopeId 10.10.54.0 –LeaseDuration (New-TimeSpan -Hours 12)

Posted in DHCP, Powershell, Windows Server 2012, Windows Server 2012 R2 | Leave a comment

Formatting disks – – the new way

Last time I showed how to format disks using the Win32_Volume CIM class. If you need to perform this activity on a Windows Server 2012/Windows 8 or later system you can use a couple of cmdlets from the Storage module … Continue reading

Posted in Windows 8, Windows 8.1, Windows Server 2012, Windows Server 2012 R2 | Leave a comment

Working with Server Core–renaming the machine

When you create a new Windows server it usually assigns a name of its own. I always prefer using my own names for servers – I usually create the name so it gives some indication of the machine’s purpose. Renaming … Continue reading

Posted in PowerShell V3, PowerShell v4, Windows Server 2012, Windows Server 2012 R2 | Leave a comment

Working with Server Core–setting IP addresses

When you create a new Windows machine it defaults to using DHCP to get an IP address. While that is fine for client machines most people apply a static address to their servers. Up until Windows 2012 you had 2 … Continue reading

Posted in Networking, PowerShell V3, PowerShell v4, Windows Server 2012, Windows Server 2012 R2 | Leave a comment

Working with Server Core–Domain join

Windows Server can be installed in two ways – full fat GUI or Server Core.  The latter is Windows without Windows.  The GUI components are stripped off and you’re just left with the core components.  This results in a smaller … Continue reading

Posted in PowerShell V3, PowerShell v4, Windows Server 2012, Windows Server 2012 R2 | Leave a comment