Tag Archives: Windows PowerShell

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 , , | 2 Comments

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

Configuring a Single Windows Server 2012 R2 Active Directory Domain Controller in a new Forest.

Pre-Windows Server 2012 and PowerShell 4.0, the primary tool/command for Active Directory Domain Controller promotion and demotion has always been the Dcpromo command. With Windows Server 2012, it’s been replaced by a suite of PowerShell cmdlets contained in the ADDSDeployment … Continue reading

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

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

Converting a User Mailbox to Resource Room Mailbox using PowerShell.

In past versions of Exchange Server, specifically Exchange 2003, managing Resource Room mailboxes was not exactly a straight forward process. In my organization at the time, to manage room Calendars and bookings for Conference rooms (they were not referred to … Continue reading

Posted in Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Shell, PowerShell, PowerShell 3.0, WIndows 8.1 | Tagged , | 1 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