PowerShell – Install SCCM 2012 R2 Prerequisites

This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The script requires media in order to complete successfully, detailed in the Script Media Requirements section below. … [Read more…]

Use PowerShell to Add Permissions to AD Container Objects for Machine Accounts Without using the AD Module

I am taking on SCCM 2012 at work, so currently, I’m working on a PowerShell script that installs all the prerequisites before installing the actual product. The list of prereqs is about a mile long, but so far, I’m batting 1.000. One of the prereqs is to add Full Control permissions on the System Management … [Read more…]

VM Network Adapter Connection Check

Sometimes it’s nice to know if your VMs are connected. You’d think it’d be easy to check for network adapter connection state, but it’s not. Not in a pretty fashion that is. The script below will show you which VMs are currently unplugged in table format using PowerCLI: $datacenter = "yourdc" $VMs = (get-vm -location … [Read more…]

Removing Lingering Object from AD: The Layadmin’s Version

On Friday afternoon, a schema update was performed in our lab. On Monday, DC replication was halting on a majority of the DCs. I was able to detect this instantly because I monitor the health of the DCs using PowerShell.  DCDIAG on the affected servers would report the following message: The replication generated an error (8606): … [Read more…]

PowerShell DC Health Status – Ping, Hard Drive Space, Replication

There is an updated version of this DC Health Check PowerShell script that is much simpler and does not require the Quest add-in. We kept getting reports that DC issues (replication to begin with) were preventing a solution from being implemented. I was tasked with determining the root cause of these issues, and this PowerShell script was born … [Read more…]