Category Archives: Windows Server 2012 R2

Remove Active Directory Domain Services (ADDS) from a WS2012 R2 with PowerShell.

I decided to tear down my Azure Lab IaaS and ASR infrastructure and rebuild it. The process involves removing the ASR configurations, Recovery Vaults, S2S VPNs, VNets and Azure VM running as a Azure based Domain controller for resilience with … Continue reading

Posted in Active Directory, Active Directory Domain Services, Azure, Azure Site Recovery, Azure VPN, DCPromo, Domain Controller, FSMO, Microsoft Hyper-v, PowerShell, Powershell 4.0, Windows Server 2012 R2 | Tagged , , , , , , , , | 1 Comment

Deleting SCVMM 2012 R2 Logical Network Definitions with PowerShell.

Attempting to delete a SCVMM 2012R2 logical network throws an exception as shown in the screen shot below because there are other dependencies like the Port Profiles, logical switches and other network objects still depending on it. The “View Dependent … Continue reading

Posted in SCVMM2012R2, System Center 2012 R2, VMM2012R2, Windows Server 2012 R2 | Tagged , , , , , | Leave a comment

My Step-by-Step DirectAccess Configuration on Windows Server 2012 R2.

Windows Server DirectAccess is an awesome and exciting feature. It’s a Windows Server role service that enables windows domain-joined machines to have always on and seamless connection to the corporate infrastructure securely over the internet without the need for traditional … Continue reading

Posted in DirectAccess, Powershell 4.0, Remote Access, Windows Server 2012 R2 | Tagged , , , , , , , , , , , , , , , , , | 12 Comments

Moving a Hyper-V Virtual Machine Storage to a Cluster Volume using PowerShell.

I have a Virtual Machine ADS00 running a guest OS WS 2012 R2 .It’s vhdx file is located on a Failover Cluster node physical server running Hyper-V Core 2012 R2. As the services offered and requirements for this VM continued … Continue reading

Posted in Failover Cluster, Failover Cluster Manager, Generation 2 Virtual Machines, Hyper-v 2012 R2, Hyper-v Manager, Hypervisor Replication, Microsoft Hyper-v, Migration, PowerShell, Powershell 4.0, VHDX, Virtual Machines, VM Replica, Windows Server 2012 R2 | Tagged , , , , | Leave a comment

PowerShell Script to Bulk Update UPN (UserPrincipalName) Suffix in a Single Non-Routable Domain.

As part of the Office 365 Configuration and migration project, we’ve had to define and create an alternate upn (UserPrincipalName) suffix for an internal Active Directory domain that is not publicly routable. Updating the upn for every user in the … Continue reading

Posted in Active Directory Domain Services, Office 365, PowerShell, PowerShell 3.0, Powershell 4.0, Script, Scripts, Windows Server 2008 R2 Backup, Windows Server 2012 R2 | Tagged , , , , , , , , , | Leave a comment

Simple PowerShell Script displays Total and Available Memory .

This script is an update to a previous post. In addition to displaying total and available disk space, it will also show the available memory at any given time for a server within a domain infrastructure. It has come in … Continue reading

Posted in Active Directory Domain Services, AD Forest, Hyper-v, Hyper-v 2012 R2, PowerShell, PowerShell 3.0, Powershell 4.0, Script, Scripts, Windows Server 2012 R2 | Tagged , , , , , , | Leave a comment

Configuring AD Group Filtering with Microsoft Azure AD Connect Tool.

Microsoft has finally introduced Active Directory group filtering with the release of Azure AD Connect. The one tool to replace AADSync and include ADFS functionality.In this post, I will outline my steps for setting up AAD Connect with Single sign-on, … Continue reading

Posted in Azure AD Sync, Azure Windows PowerShell, Directory Synchronization, Office 365, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2012 R2 | Tagged | 1 Comment

Removing a Temporary Template from System Center Virtual Machine Manager 2012 R2 using PowerShell.

While going through a house cleaning task in System Center Virtual Machine Manager 2012 R2, I found that I couldn’t remove a vhdx file that was part of a template.This is because the vhdx still had a dependency called “Temporary … Continue reading

Posted in Hyper-v 2012 R2, SCVMM2012R2, System Center 2012 R2, VHDX, Virtual Machine Manager 2012 R2, Virtual Machines, Windows Server 2012 R2 | Tagged , , , , , | 4 Comments

Resolving System Center Virtual Machine Manager 2012 R2 Error 1602.

My System Center Virtual Machine Manager 2012 R2 lab deployment crashed on me a while ago. Any attempt to log on prompted the following error ID 1602 : I restarted the SCVMM Service and the SQL Service successfully, but each … Continue reading

Posted in Hyper-v 2012 R2, SCVMM2012R2, SQL2012, System Center 2012 R2, Virtual Machine Manager 2012 R2, Windows Server 2012 R2 | 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