I gave a presentation at the Atlanta PowerShell User Group meeting yesterday (May 16, 2017) on Visual Studio Code and Powershell. Included below is the document I used for the presentation. I have included it for your reference.
Have you ever wanted to identify all of the Group Policy Objects (GPOs) in your domain that are not currently linked to any Organizational Units (OU)? This was the task I was given today by my project manager. He wanted me to identify any of our GPOs that were unlinked. We follow a certain naming scheme so that is how we identify ours. Well PowerShell made it so easy that I obtained ALL of the GPOs in the domain that were unlinked so I sent the list to our Active Directory (AD) team lead. PowerShell rocks!