Category: Powershell 4.0
-
Resolving Cluster Shared Volume “Redirected Access Mode” Error.
A while ago, I encountered a Cluster Shared Volume error in my lab. I logged into the Failover Cluster Manager and noticed multiple error status messages in the Cluster Events log. The System Log Event ID 5125 kept showing up every three minutes: Error Event id 5125 with details: Cluster Shared Volume ‘Volume1’ (‘Cluster Disk…
-
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 machines. After doing some research, I found out that after a VM Import, Hyper-v doesn’t…
-
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…
-
Enabling Jumbo Frames on Windows Server 2012 R2 using PowerShell and on Cisco 3560G using IOS commands.
Jumbo frames are Ethernet frames with a payload greater than the standard mtu of 1500. Increasing the mtu size on a 1 GB network usually improves network performance and efficiency.The following PowerShell cmdlets will help display and check current jumbo frame values and edit them.The maximum value of a Jumbo frame on an Ethernet adapter…
-
PowerShell Script uses Split() Method to display Active Directory Users’ Organizational Unit and other Properties.
A colleague was trying to generate a report of Active Directory Users, displaying their Organizational Unit and PasswordNeverExpires property status. Normally this should be very simple, but they ran into a small snag. The Active Directory module at the time of this writing which is PowerShell 4.0 does not have a direct Organizational Unit property…
-
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…
-
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…
-
Starting a saved virtual machine–with a missing virtual hard disk
Reblogged from Ben Armstrong’s Virtualization Blog . I came across a person with this problem on our forums recently: If you have a virtual machine that is in a saved state, but one of the virtual machines disks is now missing for some reason, you cannot start the virtual machine and you cannot remove the…
-
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…