Category: Windows Server 2012 R2
-
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 and cut down time to finish the task. The interactive PowerShell script accepts user input…
-
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 domain environment.Also, the script will not work on Windows Server 2003 Active Directory Domain Controllers…
-
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 Failover Cluster Manager, navigate to the specific VM, right click and select settings, select hard…
-
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 for Etherchannel. In the example below, an already configured SwitchIndependent NIC team is converted to…
-
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 is no need to host virtual machines which have no functions or I would say…
-
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 task in PowerShell. Check for installed software: Filter by Software to be Uninstalled: Locate the…
-
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 IP Address by DHCP, but there was no network access . I could not ping…
-
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 2012 R2 core, there’s a number of PowerShell cmdlets that could be used in place…