Category Archives: 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 … Continue reading

Posted in Cluster Disk, Cluster Shared Volume, CSV, Hyper-v 2012 R2, ISCSI Initiator, MSSQL 2012, Powershell 4.0 | Tagged , , , , , , , , , , | Leave a comment

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 , , , | 1 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 , , , | 3 Comments

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 … Continue reading

Posted in Jumbo Frames, Network, Powershell 4.0 | Tagged , , , | 2 Comments

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 … Continue reading

Posted in Active Directory, Powershell 4.0, Script | Tagged , , , , | Leave a comment

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

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

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 … Continue reading

Posted in Hyper-v, Hyper-v 2012 R2, Hyper-v Manager, PowerShell, PowerShell 3.0, Powershell 4.0 | 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