Tag Archives: Powershell 3.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

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

Configuring NIC Teaming on Windows Server 2012 R2 using PowerShell.

I want to quickly write about creating NIC teams on Windows Server 2012 R2 Cluster hosts for virtual machine access to the public network. There are a number of parameters to consider when creating a NIC team on this platform, … Continue reading

Posted in Hyper-v 2012 R2, Network Load Balancing, NIC Teaming, PowerShell 3.0, Powershell 4.0, 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

Deploying a Windows Server 2012 R2 Domain Controller in an existing Win2003 Functional Level Domain.

My first task before deploying a Windows Server 2012 R2 Domain Controller in a Windows Server 2003 forest functional level environment was to run the Test-ADDSDomainControllerInstallation cmdlet and determine my domain environment’s readiness to accept the new Windows Server 2012 … Continue reading

Posted in Active Directory, Active Directory Domain Services, AD Forest, DCPromo, Domain Controller, DSRM, Flexible Single Master Operations, FSMO, NTDSUtil, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , , , , , , , , , | 1 Comment

Seizing Active Directory FSMO (Flexible Single Master Operations ) roles with Powershell.

I have been running 2 Virtual Machines as Active Directory Domain Controllers in the Lab for sometime now. DC00 was running Windows Server 2003 R2 and DC01 is running Windows Server 2008 R2. But recently I lost a Hyper-v machine … Continue reading

Posted in Active Directory, Active Directory Domain Services, AD Forest, Domain Controller, Flexible Single Master Operations, FSMO, NTDSUtil, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , , , , , , | Leave a comment

Checking Available Disk Space and Memory with Powershell.

I frequently need to display the disk size, available disk space properties and Processor details of my remote Hyper-v 2012 Hosts servers. I could use the Computer Management snapin to do this, but it involves too many steps just to … Continue reading

Posted in Hyper-v, Hyper-v 2012 R2, PowerShell, PowerShell 3.0, Virtual Machines, WIndows 8.1, Windows Server 2012 R2 | Tagged , , , , , , , , | 1 Comment

Renaming AD User Object Surname Property.

The following script renames the Surname property of an Active Directory User Object. The script requires PowerShell 3.0. The only edit required is the organizational Exchange Server name specified in the New-PSSession cmdlet. The script accepts the Given Name, Surname … Continue reading

Posted in Active Directory, Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Shell, PowerShell, PowerShell 3.0, WIndows 8.1, Windows Server 2012, Windows Server 2012 R2 | Tagged , | Leave a comment

Configuring multiple ISCSI Connections for Multipath IO using PowerShell.

This post will be focused mainly on the ISCSI Initiator host and configuring multipath IO paths to an ISCSI Target. The ISCSI Target portal has already been configured with 2 network paths for ISCSI. The ISCSI Service by default is … Continue reading

Posted in Hyper-v, Hyper-v 2012 R2, ISCSI, ISCSI Initiator, ISCSI Target, Multipath-IO, PowerShell, PowerShell 3.0, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , , | 1 Comment

Configuring Hyper-v Host Network Adapters for ISCSI Storage Connectivity with Powershell .

Windows Server 2012 R2 with PowerShell 4.0 has hugely expanded support for configuring multiple NICs on a Cluster/ISCSI Initiator node via command line. After deploying multiple Network Interface Cards on my Hyper-v host, it took me a while to figure … Continue reading

Posted in Hyper-v, Hyper-v 2012 R2, ISCSI Initiator, Microsoft Hyper-v, PowerShell, PowerShell 3.0, WIndows 8.1, Windows Server 2012, Windows Server 2012 R2 | Tagged , | 4 Comments