My Profile Photo

duffney.io


DevOps Engineer | Pluralsight Author | Speaker | Blogger | PowerShell Advocate


  1. Compare Active Directory and System Center Configuration Manager Active Devices

    Applies to: Windows PowerShell 3.0+, SCCM The purpose of this script is to check a list of computers provided by a text file against Active Directory and System Center Configuration Manager to determine whether or not they are active. You might use this script if you manage System Center Configuration Manager and frequently need to validate devices that are active in both Active Directory and System Center Configuration Manager. To use this script we’ll need...…


  2. Stop All System Center Configuration Manager Application Deployments

    Applies to: Windows PowerShell 3.0+, SCCM In the process of migrating to a new System Center Configuration Manager installation, I was tasked with stopping all of the old Configuration Manager application deployments. I didn’t end up counting how many there were, but it was more than I was willing to manually remove! Which brings us to why I’m writing this blog post. When you use the Remove-CMDeployment cmdlet in PowerShell you need two pieces of...…


  3. Rename Enable and Reset the Local Administrator Account with PowerShell

    We all know it’s not best practice to leave the local administrator account named administrator, for that reason most of us rename it. So why not save a little time while doing it? Below lists a simple PowerShell script that will rename the account enable it and reset the password. I’ve gotten a little tricky with the password and added the serial number as part of it. However that can easily be changed to whatever...…


  4. Stale Active Directory Groups

    Applies to: Windows PowerShell 3.0, Windows PowerShell 4.0, Windows PowerShell 5.0, ActiveDirectory Module 1.0 Arguably one of the most difficult objects to clean up within Active Directory is groups. Lucky after watching Using PowerShell for Active Directory on Microsoft Virtual Academy there was hope! Ashley McGlone and Jason Helmick did a fantastic job on the 7+ hour series. This is just one more example of how powerful PowerShell is, it gives you visibility into something...…