Category Archives: Windows Server 2012

Resolving Hyper-v Error: “‘Unnamed VM’ could not initialize… The security ID structure is invalid.”

While moving my Lab to a new environment using the Hyper-v Export and Import VM options, I ran into an “‘Unnamed VM’ could not initialize… The security ID structure is invalid” error when trying to start the Domain Controller Virtual … Continue reading

Posted in Hyper-v, Hyper-v 2012 R2, Hyper-v Manager, Microsoft Hyper-v, PowerShell, Powershell 4.0, Uncategorized, VHDX, Virtual Machines, WIndows 8.1, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , | Leave a comment

Configuring Windows Server 2012 R2 DHCP Failover with PowerShell and Resolving Custom Options Error 20010.

For the first time, WS 2012 R2 offers a true DHCP failover and load balance solution that works. After recently migrating to Windows Server 2012 R2 DHCP, I went a step further to configure failover to a partner server with … Continue reading

Posted in DHCP, DHCP Failover, DHCP High Availability, PowerShell, Powershell 4.0, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , , , , , | Leave a comment

PowerShell Script Monitors Security Logs and Sends Email Alerts.

I wrote this PowerShell script to send email alerts when Active Directory User Account, Security and Distribution Group Management events occur in the Security logs.A few parameters will need to be edited to adapt the script to any Active Directory … Continue reading

Posted in Active Directory, Active Directory Domain Services, Audit Logs, Domain Controller, Event Logs, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2008 R2 Backup, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , | Leave a comment

Uninstalling Software with Powershell.

I have a number of Hyper-v Windows Server 2012 R2 core host machines in my environment. Once in a while, I have to check for installed software and uninstall software for maintenance. The following WMIObject class helped me achieve the … Continue reading

Posted in Hyper-v, Hyper-v 2012 R2, Microsoft Hyper-v, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2008 R2 Backup, Windows Server 2012, Windows Server 2012 R2 | Tagged , , | 2 Comments

Setting Up a WS2012 R2 Windows Deployment Server (WDS) for Pre-Boot Execution Environment (PXE).

In this post I want to quickly go through my experience setting up a Windows Deployment Server for PXE Boot(Pre-Boot Execution Environment) for my lab servers. Platform is Windows Server 2012 R2 .I outline the steps as follows: 1) Open … Continue reading

Posted in Active Directory, Active Directory Domain Services, DHCP, PowerShell, PowerShell 3.0, Powershell 4.0, Pre-Boot Execution Environment, PXE, Virtual Machines, WDS, Windows Deployment Server, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , , | Leave a comment

Demoting the last Windows Server 2012 R2 Domain Controller with PowerShell.

As with promoting a server to domain controller, demoting the a domain controller is also a straight forward process with PowerShell. The following PowerShell cmdlets are available from the ADDSDeployment module: Uninstall Active Directory: The demote process got a little … Continue reading

Posted in Active Directory, Active Directory Domain Services, AD Forest, DCPromo, Domain Controller, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , , , , | 2 Comments