Tag: Powershell

Creating VSCode User Snippets for PowerShell

If you spend time working with VSCode you’ll learn there are cool functions like “User Snippets” you can customize. I’ve talked about these before on another blog and showcased creating User Snippets that allow you to import the Configuration Manager PowerShell module. I wanted to go a step further with a few more snippets I’ve ...

Creating Maintenance Window Collections

It’s been a long held tradition to not create deployments for collections that have Maintenance windows and there are in fact a LOT of other rules that come along with using maintenace windows in a production environment. Almost a year or so ago I worked with a friend of mine to create some pretty cool ...

Add an AD Group rule to a collection with PowerShell

It’s been a long time since I’ve posted anything on my blog but after a year of writing with the SCConfigMgr team on a regular basis I thought it was time to give my roots a little bit of loving. When creating a collection in ConfigMgr its really common that we use an Active Directory ...

Enable the Active Directory Recycle Bin

Ever have gut-clenching moments when you realize you deleted the wrong object in Active Directory? Maybe you keep a bottle of antacid in your desk drawer for exactly that reason. Well not anymore. Let’s talk about a wonderful feature in Active Directory implemented back in the 2008 version of Active Directory. It’s called the ‘Recycle ...

Powershell Members of a Group

Every now and again there comes a need to get the members of a group and manipulate that data in some fashion. Now there are many ways to skin this cat and work with this data from VBscript, to utilizing DSquery to Quest Powershell CMDLETS to just raw powershell cmdlets. Rather than spend time writing ...

Powershell Change The Local Administrator Account/Password

Back in May of 2014 Microsoft released a windows update – MS14-025 – that removed the ability to push out passwords to workstations remotely using group policy due to issues with elevation of privilege. If that patch is applied it’s a rather large pain to change the local admin after that without something like SCCM in ...