How to Find SCCM 2012 Server Log Files

Benoit LecoursSCCM1 Comment

Here’s a simple tip to know which logs to check if you want to dig an error returned by a SCCM Component. Monitoring/System Status/Component Status For this article we’ll assume that the SMS_Database_Notification _Monitor is giving an error (sorry my site is clean !) You can simply go on the component, right-click,  Show messages and select all Although useful, this won’t gives you all the detail you need to fix the error. You’ll have to check the logs in your SCCMLogs folder. Ok…. but which one. This is where CM Service Manager can show you and here’s how to do that … Read More

Move Content Library to another Drive

Benoit LecoursSCCM3 Comments

Did you know you can move the content library folder to another drive on your Distribution Point ? It’s quite simple. Simply use the ContentLibraryTransfer.exe from the SCCM SP1 Toolkit. You didn’t already downloaded the toolkit ? Shame on you ! Here’s the download link : The syntax of the tool is straight forward : ContentLibraryTransfer.exe –SourceDrive <Current Drive Letter> -TargetDrive <New Drive Letter> There’s no “built-in” logs but you can pipe the output in a text file Example : ContentLibraryTransfer.exe –SourceDrive C -TargetDrive D > c:CLT.log Once completed, you can validate the change in the registry : HKLMSOFTWAREMicrosoftSMSDPContentLibraryPath Note : … Read More

Orchestrator 2012 R2 Installation Guide

Benoit LecoursOrchestrator, SCCM1 Comment

Here’s a guide to install a SCORCH instance on a single server. Use this setup for a lab, it’s not optimized for a production environment. Prerequisites Mminimum hardware configuration required for a full installation of Orchestrator: Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2 Minimum 1 gigabyte (GB) of RAM, 2 GB or more recommended 200 megabyte (MB) of available hard disk space Dual-core Intel microprocessor, 2.1 gigahertz (GHz) or better  SQL Specific SQL Server 2008 R2 or Microsoft SQL Server 2012 Orchestrator requires only the basic SQL Server features found in the Database Engine Service. Orchestrator … 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 @ You can also verify if your … Read More

SCCM Query to identify who imported OSD Computers

Benoit LecoursSCCM, SQL, SSRSLeave a Comment

This query might be helpful to know who imported a specific computer. You can view this information in the Status Message Queries and search for MessageID #30213. But this query will target only the information you need. You can use this query to create a report or directly in SQL MS. select CASE smsgs.Severity WHEN -1073741824 THEN ‘Error’ WHEN 1073741824 THEN ‘Informational’ WHEN -2147483648 THEN ‘Warning’ ELSE ‘Unknown’ END As ‘SeverityName’, smsgs.MessageID, smsgs.Time, smwis.InsString1 as Username, smwis.InsString4 as ComputerName, smwis.InsString5 as MAC from v_StatusMessage smsgs join v_StatMsgWithInsStrings smwis on smsgs.RecordID = smwis.RecordID join v_StatMsgModuleNames modNames on smsgs.ModuleName = modNames.ModuleName where smsgs.MessageID … Read More

SCCM 2012 R2 CU1 Released

Benoit LecoursSCCMLeave a Comment

The wait is over. Microsoft has just release SCCM 2012 R2 CU1 which fix lots of stuff. Follow the link to see all issues that are fixed : One bug that I’ve talked about last year is finally fixed. The Uninstall option may not be available in Software Center for applications that are made available through multiple deployment types. For example, if two deployment types for an application apply to a client, and if both have an Uninstall action, the Uninstall button is unavailable. Happy updating. Benoit LecoursFounder of System Center Dudes. Based in Montreal, Canada, Senior Microsoft SCCM Consultant, 5 times Enterprise Mobility … Read More

The Microsoft Software License Terms have not been Completely Downloaded

Benoit LecoursSCCM, SQL7 Comments

Problem SMS_WSUS_SYNC_MANAGER state is critical even if it worked in the previous months. Environment SCCM 2012 R2 SQL 2012 Windows 2012 R2 Wsyncmgr.log shows error on 2 updates : The Microsoft Software License Terms have not been completely downloaded and cannot be accepted Event viewer/Application Logs shows Access Denied errors on a different patch. Resolution The Wsuscontent directory was missing an NTFS permission. I added the “Network Service” account full control on the directory and sub-directory and launch a new sync. Everything sync successfully. All the details come from Technet. Benoit LecoursFounder of System Center Dudes. Based in Montreal, Canada, … Read More

PowerShell to change Page File Location in your SCCM TS

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 ! 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 it by 1.5 $PageFileSizeMB = [Math]::Truncate(((Get-WmiObject Win32_ComputerSystem).TotalPhysicalMemory) … Read More

Change CDROM Drive Letter using Powershell during OSD

Benoit LecoursPowershell, SCCM4 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. Add a Run command Line step in the end of your task sequence that run a powershell command. %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -command “(gwmi Win32_cdromdrive).drive | %{$a = mountvol $_ /l;mountvol $_ /d;$a = $a.Trim();mountvol z: $a}” You change the last Z: to another letter to fit your environment. Benoit LecoursFounder of System Center Dudes. Based in Montreal, Canada, Senior Microsoft SCCM Consultant, 5 times Enterprise Mobility MVP. Working in the industry since … Read More

SCCM 2012 Management Point Error 1603

Benoit LecoursPowershell, SCCM2 Comments

We have recently experienced a SCCM 2012 management point error 1603. Scenario : Installing a new MP gives an error 1603 SCCM 2012 R2 Windows 2012 R2 The first thing to check is the MPSetup.log, you can see the error 1603 but you have not much information about what’s the problem really is. You have to dig deeper in the MPMsiLog.LastError to see the root cause.                     As you can see the error is cause by a previous version of the client being installed on the server. My environment had SCCM … Read More