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

Multilingual User Interface Pack inventory with SCCM 2012

Nicolas PilonHardware Inventory, SCCM3 Comments

We all use a minimum of one operating system language on our computers.  It may be likely that a company that has many employees may end up with several nationalities. This means, more multilingual user interface (MUI) pack is required in your operating system deployment. When a MUI Pack is installed, the user interface language can be change to one of 33 supported languages. In this post, we will extend hardware inventory in SCCM 2012 to inventory multilingual user interface pack information. Here’s the steps in order to achieve this goal : Custom WMI Class Package Creation Package Deployment Hardware … Read More

How to install and configure SCCM Cmdlet Library

Benoit LecoursPowershell, SCCM2 Comments

Today, Microsoft has release the SCCM Cmdlet Library. The SCCM product group is taking a new update direction: from now on, the future Cumulative Updates (CU) releases won’t contain any PowerShell changes. The SCCM Cmdlet Library will be the vehicle for any future cmdlet updates. This separation means no more breaking cmdlets when updating to a new CU and more frequent cmdlets fixes/releases from Microsoft. Better of both world ! What’s even better is that it checks and notifies you automatically for library updates on a daily basis. Requirements SCCM 20012 R2 is supported (any CU) SCCM 2012 SP1 is not supported Read the release … Read More

New-CMDeviceCollectionVariable creating only 1 variable

Benoit LecoursPowershell, SCCMLeave a Comment

Update 2014-12-04 : Microsoft will have a fix in the next release of the PowerShell cmdlets. (Not released yet) I recently had a problem with the PowerShell command New-CMDeviceCollectionVariable creating only 1 variable. I had to create a set of collection with variables in an OSD project. The goal was to create 20 collections with 7 different variables. Nothing too complicated, Powershell to the rescue ! So I start creating my script, everything went smoothly, no errors were returned. After verification on the created collection I found out that only 1 variable per collection were created instead of the 7 intended. I decided to … Read More

PowerShell Script to delete Collections older than X Days under Specific Folder

Nicolas PilonPowershell, SCCM1 Comment

Did you ever wanted to delete a bunch of collections older than x days under specific folder name? I recently needed to clean collections older than 7 days under specific folders. The reason was simple, I came across a situation where the company own a custom package deployment solution and it create a collection each time a deployment is made. Since they are all limited collections, you can imagine the load it can create for the collection evaluator. The best solution would be to delete the collection as soon the deployment is succeeded, some internal politics prevents us to do that. … Read More

PowerShell Script Create Operational SCCM Collections

Benoit LecoursPowershell, SCCM25 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

Start-cmpackagedeployment error – Impossible to create a Required Package Deployment using CMDLET

Benoit LecoursPowershell, SCCM12 Comments

**Edit 2014/10/31 : I’m still struggling to make this cmdlet work with a Required schedule even if Microsoft says it’s fixed. If you have been able to make it work, leave a comment in this post. Start-cmpackagedeployment error ** **Edit 2014/06/27 : This issue is supposedly fix with R2 CU2 ** The Start-CMPackageDeployment cmdlet is failing with the following error when creating a “Required” deployment with a schedule. This CMDLet starts the deployment of a software package to a Configuration Manager collection. Run SCCM cmdlets and scripts by using the SCCM console or by using a Windows PowerShell session. When you run SCCM cmdlets … Read More

Manage SCCM Maintenance Windows with Powershell

Benoit LecoursPowershell, SCCM1 Comment

If you’re not aware, you can manage your SCCM maintenance Windows using PowerShell. Here’s a simple example but you can get creative. #Import SCCM Module Import-Module $env:SMS_ADMIN_UI_PATH.Replace(“bini386″,”binconfigurationmanager.psd1”) #Get SiteCode $SiteCode = Get-PSDrive -PSProvider CMSITE # Set Location to SCCM Set-Location “$($SiteCode.Name):” #Occurs Fourth day of every 3 months effective the time you create it at 3:00 AM $Schedule = New-CMSchedule -DurationCount 1 -DurationInterval Hours -RecurCount 3 -DayOfMonth 4 -Start ([Datetime]”3:00″) $Collection = Get-CMDeviceCollection -Name “Your Collection Name” New-CMMaintenanceWindow -CollectionID $Collection.CollectionID -Schedule $Schedule -Name “Your Schedule Name” More information and example on technet @ http://technet.microsoft.com/library/dn472934(v=sc.20).aspx You can also verify if your … Read More

SCCM Task Sequence Page File Location change using PowerShell

Benoit LecoursPowershell, SCCM7 Comments

SmsSwDistCacheDirDelete in ccmsetup.log 03

You can script the placement of the Windows page file in your SCCM Task Sequence. Sure you could use the good old wmic pagefileset but we’re in 2014, Powershell is your new friend! SCCM Task Sequence Page File Location Script My clients needed a script that : Disable page file on OS drive Move it to D: Set the page file based on the allocated memory installed (x1.5) I used a Powershell module found here. My Script then uses a function of this modules to fits my needs. Save this script in a .ps1 file. #Reads the physical memory and multiplies … Read More

SCCM Change Drive Letter using Powershell in OSD Task Sequence

Benoit LecoursPowershell, SCCM5 Comments

SmsSwDistCacheDirDelete in ccmsetup.log 03

By default, Windows will assign the next available letter to your CD/DVD ROM drive. For servers and even workstation, it could be useful to change it to a standard value. This post will describe how SCCM Change Drive Letter in an OSD task sequence. In computer data storage, drive letter assignment is the process of assigning alphabetical identifiers to volumes. As an SCCM admin, you should always find ways to optimize your work and stop doing repetitive tasks. Add a Run Command Line step at the end of your task sequence that runs a PowerShell command. The latest SCCM 1902 Version can now directly … Read More