Category Archives: Windows Server 2012 R2

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

Migrating DHCP from Windows Server 2003 SP2 to WS 2012 R2 Platform .

Migrating DHCP from WS2003 to WS2012 R2 with PowerShell on the source server throws a dhcp version conflict error. The recommendation is to use NetShell for the initial export and import . 1) Login to the current WS2003 DHCP Server … Continue reading

Posted in DHCP, Migration, Windows Server 2012 R2 | Tagged , , , , , | 4 Comments

Interactive PowerShell 4.0 Script Automates Active Directory User and Mailbox Creation.

In line with the objective of streamlining and automating new employee/user creation process for help desk/level 1 support, I wrote the following PowerShell script to help precisely define the steps in the process, further reduce the chance for human error … Continue reading

Posted in Active Directory, PowerShell, Scripts, WIndows 8.1, Windows Server 2012 R2 | Tagged , , , | 2 Comments

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 , , , | 2 Comments

Resizing/Expanding a Virtual Disk and Resynchronizing to Replica Hyper-v Virtual Machine .

Hyper-v Server 2012 R2 has added functionality that enables an admin expand the size of a running/online virtual machine disk.In my Hyper-v 2012 R2 environment, I recently resized a clustered virtual machine root volume (vhdx file)via the following steps: Open … Continue reading

Posted in Hyper-v 2012 R2, Hyper-v Manager, Hypervisor Replication, Microsoft Hyper-v, VM Replica, Windows Server 2012 R2 | Tagged , , , , | 3 Comments

Configuring Windows Server 2012 R2 NIC Teaming with EtherChannel on Cisco 3750G Switch.

Windows Server 2012 R2 built in NIC Teaming code enables link aggregation of multiple network adapters with same speeds for outbound traffic from the host. To take advantage of inbound traffic aggregation, the switch ports will have to be configured … Continue reading

Posted in Cisco, Hyper-v 2012 R2, Network, Network Load Balancing, NIC Teaming, Powershell 4.0, Windows Server 2012 R2 | 1 Comment

23 Best Practices to improve Hyper-V and VM Performance

Best practices are the most obvious starting point for improving your Hyper-V and Virtual Machine performance and I’ve listed 23 of them for you below. 1. Avoid overloading Hyper-V Server You must not overload Hyper-V Server. In other words, there … Continue reading

Posted in Generation 2 Virtual Machines, Hyper-v, Hyper-v 2012 R2, Hyper-v Manager, Microsoft Hyper-v, NIC Teaming, Virtual Machines, Windows Server 2012 R2 | 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 , , | 5 Comments

Resolving EventID: 4292 IPSec driver Block mode Error !!

I recently encountered a situation with a Virtual Machine running Guest OS Windows Server 2003 SP2. The parent partition (Host) is running Hyper-v 2012 R2. I could login to the VM console using Hyper-v Manager, the Guest OS had an … Continue reading

Posted in Hyper-v Manager, Microsoft Hyper-v, Network, Windows Server 2012 R2 | Tagged , , , | Leave a comment

Configuring Network Adapter TCP/IP Settings using Powershell 4.0 Cmdlets .

PowerShell 4.0 is a requirement for these cmdlets to work.The GUI( Graphic User Interface) is commonly used to configure network adapter settings or the good old netsh command. But if I had to work with Hyper-v core or Windows Server … Continue reading

Posted in Hyper-v 2012 R2, PowerShell, Powershell 4.0, WIndows 8.1, Windows Server 2012 R2 | Tagged , , , , , | Leave a comment