Powershell Script to Create Collections with Folder Structure

Jonathan LefebvrePowershell, SCCM2 Comments

Following the excellent PowerShell script that Benoit wrote to create operationals collection, I decided to rethink it a bit to help classify collections and ease Role-based administration control implementation when a different group of users accesses SCCM. On top of that, the way folders for collections are designed, it helps implement a naming convention to keep things clear all across the SCCM console. The overall idea is to keep collections on a per needs basis. Having a collection that receives client settings, 1-2 applications, OSD and Windows Updates can lead to unplanned/accidental deployment or misconfiguration. With one collection per need, … Read More

SCCM PowerShell Script to Delete Unused Collection

Benoit LecoursSCCM1 Comment

From all management activities, collections are arguably the most important object to know about. Collection evaluation, if not configured correctly can have a huge impact on your SCCM hierarchy. This Powershell script will detect and delete SCCM Devices Collections that have no members and no deployment assigned to it. This can be useful to delete unused/unneeded collections. We often see lots of these “orphan” collection after years of management. The less collection, the less evaluation task for your server. The script will detect collections that have no members and no deployment assigned to it The script will prompt the user for … Read More

How to configure SCCM Device Categories

Benoit LecoursSCCM2 Comments

Beginning with SCCM 1606, you can create device categories to automatically add devices into device collections when you are using SCCM and Intune in a hybrid scenario. (In a standalone scenario, this feature is named Device group mapping). At enrollment time, the mobile users are required to choose a device category. Once a device category is selected, the device is added to the corresponding collection based on a new collection membership : Device Category Rule. Device categories can also be set manually on a single device using the SCCM Console. Here’s everything you need to know in order to manage this new features : Create SCCM Device Categories Open the … Read More

How to use SCCM Dynamic Queries in your Deployment Collections

Stephane FaubertSCCM5 Comments

In this post we will be looking at using SCCM dynamic queries to populate collections in our deployments. As a SCCM administrator, you most likely had to plan out mass deployments to all your servers or workstations or even both. How did you go ahead and populate your collections? Queries? Since the introduction of SCCM 2012, we now have a multitude of options, most notably: Direct membership Queries Include a collection Exclude a collection Chances are, if you are deploying a new software to be part of a baseline for workstations (for example), you will also add it to your task … Read More

How to manage your Distribution Points with Collections

Jonathan LefebvreSCCMLeave a Comment

Do you have a high number of distribution point in your SCCM environment? Managing large SCCM environment with many Distribution Point or Pull Distribution Point is not an easy task. We’ve done a great post on 8 ways to monitor your Distribution Point, it was most related to the console monitoring and reports. We also provided a report to manage content on your Distribution Point. Additionally, you can use collections to regroup Distribution Point based on specific information. The advantage of using collections is that an action that can be taken based on the membership. (compliance settings, applications, etc.) This post will explain … Read More

Step-by-Step SCCM 2012 R2 SP1 CU1 Installation Guide

Benoit LecoursSCCM60 Comments

Cumulative Update 1 (CU1) for SCCM 2012 R2 SP1 and SCCM 2012 SP2 is now available. This post is a complete step-by-step SCCM 2012 R2 SP1 CU1 Installation guide. If you’re looking for a complete SCCM 2012 installation guide, see our blog series which covers it all. Installing SCCM cumulative updates is very important to your infrastructure. It fix lots of issues, which some of them are important. As this is the first post-R2 SP1 cumulative update, the important requirement for the installation is that SCCM 2012 R2 SP1 is installed. The latest non-R2 SP1 cumulative update is CU5. Don’t get confused, this CU could have been named … Read More

Our favorite SCCM 2012 R2 SP1 New Features

Benoit LecoursSCCM6 Comments

Microsoft announced the release of SCCM 2012 SP2 and SCCM 2012 R2 SP1. This service pack includes tons of new features. We covered the complete installation, now we decided to compile a list of our favorite SCCM 2012 R2 SP1 new features and we’ll be describing how to enable them and explain why they made the cut. Preferred Management Points Official description from Technet : Preferred management points enable a client to identify and prefer to communicate with a management point that is associated with its current network location or boundary. When configured, a client attempts to use a preferred management point from its assigned site before using a management point … Read More

Using Collection variables in SCCM Task Sequence

Benoit LecoursOSD, SCCM20 Comments

I get often asked on how to reduce the number of SCCM task sequence and how to make them dynamic. I’m always surprise when I hear from an SCCM administrator that they don’t use variables in their task sequence. For this post, I’ve build a little scenario to explain it to you. Let’s say you are working in an international company and use SCCM to deploy operating system. Each offices has their own configuration and specific software to install. You decide to create 1 task sequence per office. Wrong ! You’ll end up in a management nightmare. One task sequence is … Read More

PowerShell Script Create Operational SCCM Collections

Benoit LecoursPowershell, SCCM23 Comments

PowerShell Script Create Operational SCCM collections In each SCCM project that I get involved, I get the same question : “Can you create a collection for Servers, Laptops, Workstation, Windows 7, Windows 8, ect…” With time I built a set of “Default” query for device collections that I create right after the initial SCCM setup. This set of collection usually covers 95% of the initial client needs. I’ve built a PowerShell script so the effort to create 56 collections is near to none. By running the Powershell script, you’ll end up having 56 collections in a Operational folder. The collections are set to refresh on … Read More

Remove Computer from Collection after OSD

Benoit LecoursPowershell, SCCMLeave a Comment

This post is a step-by-step guide on how to remove computer from collection after OSD. If you’re using specific collections for your OSD deployments you certainly knows that the collections are not emptied automatically. After a couple of weeks, you’ll end up with a collection full of systems. The bad news is that there’s nothing built-in the product, the good new is that our friend PowerShell can do this dirty job. To run the script : The imported module needs to be trusted The script must run in x86 mode The computer account must have proper permission (SCCM and DCOM) … Read More