SCCM PowerShell Script to Delete Unused Collection

Benoit LecoursSCCM1 Comment

Are you using an SCCM Script to Delete your collection? From all SCCM 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 them. This can be useful to delete unused/unneeded collections. We often see lots of these “orphan” collections after years of management. The less collection, the fewer evaluation task for your server. Why would you want to consume server resources on collections that are useless? Even worst, if you are using incremental collection refresh, it could slow down considerably your server. You can do the whole process manually but it will be difficult to identify and fastidious to delete all collections one by one. This is where Powershell becomes really useful and saves … Read More

Using SCCM Collection variables in Task Sequence

Benoit LecoursOSD, SCCM28 Comments

For this post, I’ve built a little scenario to explain how to use SCCM Collection variables in Task Sequence. I get often asked how to reduce the number of SCCM task sequences and how to make them dynamic. I’m always surprised when I hear from an SCCM administrator that they don’t use variables in their task sequence. Let’s say you are working in an international company and use SCCM to deploy operating systems. Each office has its 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 often enough and this is where you need variables to the rescue. The magic that you need to understand is collection variables. You have 2 choices, let the user enter the variable value at the beginning of the deployment (explain later) or pre-load these values using collection … Read More

How to uninstall or remove SCCM Secondary site

Benoit LecoursSCCMLeave a Comment

This blog post will guide you through the step to remove or uninstall an SCCM secondary site. SCCM Secondary sites have been around since the beginning of the product. SCCM has improved a lot with time and the need for a secondary site is less needed. There are so many new options, especially for content management that you should need an SCCM secondary site. If you have clients in remote network locations, consider using one or more content management options instead of a secondary site. In fact, we don’t remember the last time we installed a new one on a new SCCM site. However, we are still seeing a lot of secondary sites on the existing site that has been installed some years ago. Our general recommendation is simply to replace these secondary sites with a local distribution point and use multiple content management solutions. We like to keep the … Read More

Monitor SCCM Comanagement using custom report

Eswar KonetiSCCMLeave a Comment

Co-management was first introduced in SCCM 1710, since then, it has been updating with the latest features that help to achieve more in a better way. Co-management helps to move the windows device management from traditional to Modern using Microsoft Intune (MDM). This post will describe how to Monitor it using an SCCM comanagement report. If you don’t have any plans to manage the device using Intune which is already being managed by ConfigMgr, you can still go ahead and enable the co-management and leave the workloads with ConfigMgr. You obsoletely have no issues in doing it. By enrolling the device into Intune, you get additional benefits from the cloud such as conditional access policy, wipe or reboot a device, etc. When you enable the co-management and start moving the workloads to Intune, it is always important to monitor the devices for enrollment status, the errors in case they failed … Read More

How to Find SCCM Server Log Files

Benoit LecoursSCCM2 Comments

Here’s a simple tip to know which SCCM server logs files to check if you want to dig an error returned by an SCCM Component. In SCCM, client and site server components record process information in individual SCCM log files. You can use the information in these log files to help you troubleshoot issues that might occur. The default path to find the SCCM server logs files is in your SCCM Installation Directory\Logs. If you’ve used the default installation directory, it will be located in C:\Program Files\Microsoft Configuration Manager\Logs. The problem is that when opening this directory, you’ll find dozens of SCCM logs files. When you manage SCCM for multiple years, you get to know which logs to look at, but as a beginner, it can be hard to find the right log. This post aims to help you find the right log file based on a specific component error. … Read More

Getting started with SCCM Powershell cmdlet

Benoit LecoursPowershell, SCCMLeave a Comment

You can run SCCM Powershell cmdlet and scripts from the SCCM console or from a Windows PowerShell session. This is very useful to do stuff in SCCM without using the console. You can do pretty much anything using Powershell. When you get used to it, you can write more complex scripts to automate and save lots of time. Supported versions of SCCM’s current branch support Windows PowerShell version 5.1. Starting in version 2010, the Configuration Manager PowerShell cmdlet library supports PowerShell 7.  If you’re not familiar with PowerShell and SCCM, the easiest way to connect to your site is to use the shortcut in the console : In the SCCM console Select the upper-left white arrow choose Connect via Windows PowerShell A Windows PowerShell loads, you’ll see a prompt that contains your site code. For example, if the site code is “SCD”, the prompt will show: PS SCD:\> SCCM Powershell Cmdlet Syntax … Read More

Step-by-Step SCCM 2111 Upgrade Guide

Benoit LecoursSCCMLeave a Comment

Microsoft has released a third SCCM version for 2021. SCCM 2111 has been released on August 2nd, 2021. Don’t forget SCCM has had a new branding since 1910 – now called Microsoft Endpoint Configuration Manager (MEMCM). This post is a complete step-by-step SCCM 2111 upgrade guide, meaning that if you want to upgrade your existing SCCM/MEMCM installation to the latest SCCM/MEMCM updates, this post is for you. If you’re looking for a comprehensive SCCM installation guide to build a new server, refer to our blog series which covers it all. You won’t be able to install SCCM 2111 if you are running SCCM 2012. Well, that’s an odd phrase! Thank you current branch naming. SCCM 2111 is not a baseline version. This means that if you’re downloading the source from Volume Licensing, SCCM 2103 will be the starting version of your new SCCM site and you’ll have to apply this update … Read More

Create Operational SCCM collection using PowerShell script

Benoit LecoursPowershell, SCCM26 Comments

Using Powershell you can do many things in SCCM. Over the years, in many SCCM consulting projects that we got involved in, we get the same question: “Can you create SCCM collections for Servers, Laptops, Workstations, Windows 10…”. Back in 2015, I started to build an SCCM collection PowerShell script to create these operational collections that I create right after we do an SCCM installation. With time, I added more and more collections to the script. Today, the script contains more than 130 collections and has been downloaded more than 60 000 times making this my most downloaded contribution to the community. This set of collections usually covers 95% of the initial client needs. All you need to do is to run the SCCM collection PowerShell script on your SCCM server and wait. After running, you’ll end up having 134 collections in an Operational folder. The collections are set to refresh on a … Read More

SCCM Client Version and Cumulative Update List

Benoit LecoursSCCM97 Comments

SCCM Client Version Report

We compile a list of SCCM client version, build numbers and cumulative updates since the 2012 RTM release. SCCM Upgrades are released 3-4 times a year. After an SCCM Upgrade, it’s important to upgrade your SCCM Client version to the latest version. Cumulative updates are cumulative, meaning that the latest one includes the previous one. (Ex: You don’t need to apply CU1 if you plan to install CU2) Once you apply a cumulative update, your SCCM version on the site server itself will not change. The site server will show the latest major SCCM release (RTM,SP1,R2). However, the new SCCM version numbers will show on your Consoles and Clients. We recommend that you upgrade all your clients when you are applying the latest SCCM version. We release a step-by-step guide on how to update your SCCM server each time a version comes out. Just use the link next to the client … Read More

Deploy Windows 10 21H2 using SCCM / MEMCM

Benoit LecoursSCCMLeave a Comment

This blog post will cover all the tasks needed to deploy the new SCCM Windows 10 21H2 Upgrade. We will cover scenarios for new and existing computers that you may want to upgrade. Microsoft published the Windows 10 21H2 feature update on VLSC on November 16th 2021. You may also need to deploy Windows 10 21H2 to your existing Windows 10 computer to stay supported or to benefit from the new features. There’s a couple of important change in this release. Here are the main support and deployment features : If you have devices running Windows 10, version 2004 or later, you can update them quickly to Windows 10, version 21H2 using an enablement package New Windows 10 release cadence that aligns with the cadence for Windows 11. Microsoft is now targeting annual feature updates for Windows 10  Start of the 30-month servicing timeline for Windows 10 New W10 Enterprise … Read More