Category: SCCM

  • Writing Current User registry keys in SCCM as System

    Normally I would have used CI’s from SCCM, but in this case I always received an Access Denied on the Current User Registry path. By using this script, we are able to to write to the Current User registry keys by deploying an application/package that runs as the System account.  You’ll need the following: Ensure…

  • Collection query Model

    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Model like “%Optiplex 7060%”

  • Dell/HP BIOS UEFI Configuration

    Dell Command Configure————————————————————–HAPIInstall.cmd: @echo off if defined programfiles(x86) ( call %0%\..\x86_64\HAPI\HAPIInstall.bat ) else ( call %0%\..\x86\HAPI\HAPIInstall.bat )————————————————————–HAPIInstall.bat: @echo off Echo This file will install HAPI %0\..\hapint64.exe -i -k C-C-T-K -p “hapint64.exe” -q ————————————————————–cctk.cmd bootorder –activebootlist=uefi————————————————————–cctk.cmd –secureboot=enable————————————————————–————————————————————–HP BIOS Configuration Utility————————————————————–BiosConfigUtility64.exe /setvalue:”Boot Mode”,”UEFI Native (Without CSM)”————————————————————–BCU.cmd /setvalue:”Boot Mode”,”UEFI Hybrid (With CSM)”————————————————————–BCU.cmd: @ECHO OFF set cmdline=%*…

  • Use Legalnoticecaption for OSD Failure message

    Set the failure message step after Setup Windows and ConfigMgr.Set OSD Failure MessageREG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v legalnoticecaption /t REG_SZ /d “The Operating System Deployment FAILED!” /f & REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v legalnoticetext /t REG_SZ /d “Please rerun the imaging task by restarting the boot media or contact the Service Desk.” /f Remove the failure message…

  • Redistribute failed packages

    # Redistribute failed packages without clicking view status -> redistribute package $SiteCode = “P01” $PackageState = “3” $FailedPackages = Get-WmiObject -Namespace “Root\SMS\Site_$($SiteCode)” -Query “select * from SMS_PackageStatusDistPointsSummarizer where state = $($PackageState)” if ($FailedPackages.Count -gt 0) { Write-Host “There are $($FailedPackages.Count) Failed Packages at the moment.” } elseif ($FailedPackages) { Write-Host “There is 1 Failed Package…

  • Documenting your Task Sequences Automagically (Update – v2)

    Open PowerShell from your sccm console as an admin so you are connected to your site server Just export your task sequence using the following command (Get-CMTaskSequence | Where-Object {$_.Name -eq “YourTaskSequenceName”}).Sequence | Out-File “C:\Temp\YourFileName.xml” Copy tsDocumentorv2.xsl to the same folder as your task sequence. Open your task sequence YourFileName.xml in your favourite text…

  • Clear Software Center when a task is stuck at Downloading/Installing

    $ccmProgram = Get-WmiObject -Namespace ROOT\CCM\ClientSDK -Class CCM_Program | Where-Object {$_.EvaluationState –eq 14} If ($ccmProgram -ne $null) { $ccmExecutionRequestEx = Get-WmiObject -Namespace ROOT\CCM\SoftMgmtAgent –Class CCM_ExecutionRequestEx | Where-Object {$_.RunningState -eq “NotifyExecution” -and $_.AdvertID -gt “” -and $_.ContentID -eq $ccmProgram.PackageID} If ($ccmExecutionRequestEx -ne $null) { $ccmExecutionRequestEx | Remove-WmiObject Start-Process sc.exe -ArgumentList “config smstsmgr depend= winmgmt/ccmexec” -Wait Restart-Service -Name…

  • Clear the cache when using 1E Nomad

    cachecleaner -deleteall -force=3

  • Repair SCCM Client issues

    Great Client repair utility SCCM Client Tool for 1.fixing WMI issues 2. Ping issues 3. Client Health issues 4. change client cache size 5. Install / Uninstall SCCM Client 6. Repair Update Cycles …. etc The tool is downloadable as a ZIP file that contains four files: ClientActionsTool.hta – The tool itself. Cmdkey.exe – command…

  • Troubleshoot Management Points

    Troubleshooting: Invalid MP cert info; no signature Failed to query http://… for MP location Step 1) verify the mplist and mpcert if you get the cert page and mp list the mp is working

  • Secure Delete Files Permanently with SDelete

    Secure Delete Files Permanently with SDelete Contents of the Software Package: – sdelete.exe – sdeleteEULA.reg: ————————————————- Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Sysinternals\SDelete] “EulaAccepted”=dword:00000001 ————————————————- Tasksequence: Restart Computer to WinPE – Secure Wipe C Drive — Copy SDelete xcopy.exe “.\*.*” “%WinDir%” /E /C /Q /H /R /Y /I Package: SDelete — Accept SDelete EULA regedit.exe /S…

  • Add Packages to WinPE

    Dism /Mount-Image /ImageFile:”C:\Temp\prodbootv62\sources\boot.wim” /index:1 /MountDir:”C:\Temp\Mount” ## Dependencies: Install WinPE-WMI > WinPE-NetFX > WinPE-Scripting > WinPE-PowerShell Dism /Add-Package /Image:”C:\Temp\Mount” /PackagePath:”C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\” Dism /Add-Package /Image:”C:\Temp\Mount” /PackagePath:”C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\” Dism /Add-Package /Image:”C:\Temp\Mount” /PackagePath:”C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\” Dism /Add-Package /Image:”C:\Temp\Mount” /PackagePath:”C:\Program…

  • Auto Apply Drivers or Apply Driver Package

    Auto Apply Drivers This action relies on Plug’n’Play (PNP) detection from within Windows PE (WinPE) to scan the hardware that is present, and send this list to the Management Point (MP). The MP replies with a list of compatible drivers that are available on local Distribution Points (DPs), and the Task Sequence downloads and installs…

  • Delegate Control Domain Join failed

    NetpJoinDomainOnDs: Function exits with status of: 0x216d 0x216d = ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED “Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased.” By default any authenticated user can add up…

  • Status Message Queries: Monitor Office 365 Installation

    Peter Monten gave me a cool query for SCCM 2012 to monitor an deployment.It is compatible with all deployments in SCCM and so I changed it for our Office 365 – 2016 rollout. select stat.*, ins.*, att1.*, att1.AttributeTime from SMS_StatusMessage as stat left join SMS_StatMsgInsStrings as ins on stat.RecordID = ins.RecordID left join SMS_StatMsgAttributes as…

  • Unable to export Task Sequence with dependencies in SCCM 2012 R2 SP1

    System.NullReferenceException Object reference not set to an instance of an object. Stack Trace: at Microsoft.ConfigurationManagement.Migration.ObjectSerialization.Modeling.PrototypeImpl.TryGetPropertyValue(Object instance, String propertyName, Object& value) at Microsoft.ConfigurationManagement.Migration.ObjectSerialization.Modeling.EntityHandle.TryGetValue[T](String propName, T& value) at Microsoft.ConfigurationManagement.AdminConsole.MigrationAssistant.ExportPageControl.relatedWoker_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) Remove the checkmark “Use an unattended or Sysprep answer file…” from Apply OS step, the export goes fine.

  • Where is Tools ConfigMgr Service Manager Option in CM 2012 Console

    Monitoring\Overview\System Status\Component Status

  • Tasksequence detect freespace on disk

    WMI Query in Tasksequence root\cimv2Select * from Win32_LogicalDisk where name = “C:” and FREESPACE > 5368709120

  • Validating file permissions and getting driver attibutes takes a lot of CPU and time on SCCM 2012 R2 SP1 CU1

    Good news, there is a hotfix available!

  • Activate Windows 10 on KMS

    Because there is still no new server key available (2016).VLSC has provided us a special Windows 10 activation key. Windows Srv 2012R2 DataCtr/Std KMS for Windows 10 For those guys who don’t understand this.To activate Windows Clients on KMS running Windows Server, you need the Server Key to activate your client.

  • Multicast: Encountered error transferring file 800705B4

    Un-checked Allow this package to transfered via multicast at package/image properties. Cleared SerializedMCSKey and SignedSerializedMCSKey in registry (HKLM\Software\SMS\MCS). Unchecked enable multicast at dp properties. Checked enable multicast at dp properties. Checked Allow this package to transfered via multicast at package/image properties. ConfigMgr 2012 R2 MultiCast issue smsts.log showing HRESULT=800705B4)

  • Remove Duplicate SSRS Folders & Solve SSRS not working issues

    * Uninstall old SCCM Client C:\Windows\ccmsetup\ .\ccmsetup.exe /uninstall * Clean CCM WMI Get-WmiObject -Namespace “root” -Query “SELECT * FROM __Namespace where name= ‘ccm’” | Remove-WmiObject * Uninstalled Reporting Services Point Role from SCCM 2012 R2 * Ran the script by (Mike Laughlin) after editing “SiteCode” & “Server Name” to clean up OLD files leaving only…

  • Error 3: Installing Java Runtime Environment 8u65 or 8u66

    In case you are wondering, normally I would open the EXE’s and extract the MSI’s. But today I decided to use the EXE’s with the default commands that Oracle delivers us. Had some problems with SCCM depencies and with little time, I used a batch file. When using SCCM and installing it with SYSTEM credentials,…

  • Windows 10: Default File Explorer view “This PC”

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced LaunchTo DWORD 1 = This PC 2 = Quick access

  • SCCM Logs

  • New installation of SCCM 2012 R2 SP1

    Upgrading your installation: If you have a System Center 2012 R2 Configuration Manager installation, you can use the System Center 2012 Configuration Manager SP2 media to install the latest patches and automatically upgrade to System Center 2012 R2 Configuration Manager SP1. New installation: Install System Center 2012 Configuration Manager SP2 first, and then install System…

  • Removing Built-in apps from Windows 10 WIM-File with Powershell – Version 1.1

    Removing Built-in apps from Windows 10 WIM-File with Powershell – Version 1.1 When creating a Windows-10-Image for the Enterprise you may not want to include all of the default Windows Store Applications. This script takes a simple list of Apps and then removes the Apps from the default install.wim. The Script works aso for Windows…

  • Cannot edit the object, which is in use by …

    Open SQL Management Studio select * from SEDO_LockState where LockStateID <> 0 DELETE from SEDO_LockState where LockID = ‘<LockID of the record identified in the previous query>’

  • Changing startup to Automatic on the SCCM Remote Control Service

  • DISM: Edit Bootimage WinPe

    Dism /mount-wim /wimfile:s:\winpe\boot_W10_x64.wim /index:1 /mountdir:s:\winpe\mount Dism /image:s:\winpe\mount /add-driver /driver:s:\winpe\drivers /recurse Dism /image:s:\winpe\mount /Set-InputLocale:nl-BE Dism /image:s:\winpe\mount /Set-SysLocale:nl-BE Dism /image:s:\winpe\mount /Set-UserLocale:nl-BE Dism /Unmount-Wim /MountDir:s:\winpe\mount /Commit Dism /Cleanup-WIM

  • Install Console

    ConsoleSetup.exe /q TargetDir=”%ProgramFiles(x86)%\Microsoft Configuration Manager\AdminConsole\” EnableSQM=0 DefaultSiteServerName=SCCMP.CORP.ME %ProgramFiles(x86)%\Microsoft Configuration Manager\AdminConsole\binMicrosoft.ConfigurationManagement.exe5.0.8239.1000

  • Can’t Delete ConfigMgr_OfflineImageServicing Folder After Failed Servicing

    Take ownership on the last Folder Give your account full control Delete the folder This does only work after you apply dism /get-MountedWimInfo dism /cleanup-wim

  • Reporting Services Site Role Setup: Instance Blank/Empty

    When attempting to set up and configure the ConfigMgr 2012 site system role for reporting services, a frequently experienced “problem” is that the instance name can be blank/empty in the wizard and thereby unable to proceed with the wizard. This usually occurs when SRS has not been pre-configured properly.While it is common “knowledge” that the…

  • Unable to remove the Component Server Site System Role

    Problem: I am trying to remove a DP from a server. I’ve gone to Administration | Overview | Site Configuration | Servers and Site System Roles I right-click on the server that is hosting the DP I want to remove and select Delete from the context menu. However, I then get a Delete Server dialog…

  • OSD Deploying ConfigMgr Hotfixes

  • oobe.xml example

    <?xml version=”1.0″ encoding=”utf-8″ ?><!– Oobe.xml sample file for the region: Catalonia, Spain For more info, see Configure Oobe.xml, –><FirstExperience> <oobe> <oem> <name>Fabrikam</name> <!– Name of the manufacturer –> <eulafilename>fabrikam_eula.rtf</eulafilename> <!– If a relative path is used, it will start from the same folder as Oobe.xml. Example: %WINDIR%\System32\Oobe\Info\Default\1031\fabrikam_eula.rtf –> </oem> <defaults> <!– Set the defaults…

  • Performance Indicator for SSD

    OSD Task Sequence Run Performance IndicatorWinSAT.exe formal%SystemRoot%\System32

  • Create RolloutFile in TaskSequence

    copy /y NUL C:\Windows\Temp\SDT_Microsoft_Windows_10_EN_Deployed.txt >NUL

  • Changing the language of the SCCM Console

    Rename the language pack folder within the install directory of your Management console. System Center Configuration Manager 2012: C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\{language_code} Close the management console. Rename the language pack folder corresponding to your situation. In my case it is nl. Rename it to nl_backup. Restart your console.

  • Activate Office/Windows under Task Sequence

    Office: Set KMS Host cscript OSPP.VBS /sethst:KMS.FQDN.local C:\Program Files (x86)\Microsoft Office\Office15 —- Activate Product cscript OSPP.VBS /act C:\Program Files (x86)\Microsoft Office\Office15 —- Install for non windows-kms server office2013volumelicensepack_x86_en-us.exe ———— Windows: Set KMS Host cscript slmgr.vbs /skms KMS.FQDN.local:1688 C:\Windows\System32 —- Activate Product cscript slmgr.vbs /ato C:\Windows\System32 —-

  • Show Pop-up message OSD TS

    PowerShell.exe -command “& { $ReturnCode = (New-Object -COMobject\”NO OSDprocessorArchitecture defined. Device ‘ll be formated, but no OS ‘ll be installed!\”,0,\”Warning\”,0x00040016); eXit $ReturnCode}” Test Step – Check if OS Architecture is defined!​ Tasksequence variable bij options _____ PowerShell.exe -ExecutionPolicy ByPass -Command “& { (New-Object -COMobject\”Entered a OSDTestStep, OSDTestRun is activated. Press OK to…

  • WinPE: Change keyboardlayout

    Run command line Wpeutil SetKeyboardLayout 0813:00000813 or with powershell Set-WinUserLanguageList nl-BE or with DISMSee other post

  • The software change returned error code SCCM

    0x87D00324 This will indicate that software installation was succesfull, but detection method sucks.

  • DISM: disable features

    OSDDisableFeatures.ps1 DISM /online /Disable-Feature /FeatureName:MediaCenter /Quiet /NoRestart write-host “Successfully removed Media Center” DISM /online /Disable-Feature /FeatureName:FaxServicesClientPackage /Quiet /NoRestart write-host “Successfully removed Windows Fax and Scan” DISM /online /Disable-Feature /FeatureName:OpticalMediaDisc /Quiet /NoRestart write-host “Successfully removed Windows DVD Maker”

  • Prompt for Computer Name during SCCM OSD

    With this method you don’t have to import a computer in SCCM 2012 with the MAC-Address. Just start the tasksequence as an unknown computer … To do this, complete the following steps, if you need any assistance, just post a comment at the bottom of this post. Open your Configuration Manager console and go to…

  • SMSTSPostAction

    This task sequence variable can be used to configure a post action for a task sequence. To configure this, follow the next steps: Open a task sequence in the Task Sequence Editor. Add a Set Task Sequence Variable –step to the task sequence. Fill in as Task Sequence Variable SMSTSPostAction and, in this example, as…

  • Detection Method for a certificate


  • Win 8.1 OSD with Language Packs

    Apply Operating System EnglishApply Operating System FrenchApply Operating System DutchUse an unattended or Sysprep answer file-> PKG_Win8.1_Unattend_NL—> Unattend.xml Apply Language EN (OSLanguage equals “EN”)Apply Language FR (OSLanguage equals “FR”)Apply Language NL (OSLanguage equals “NL”)-> Apply NL Language Pack—> cmd /c dism.exe /online /add-package /—> Package: PKG_Microsoft_LanguagePack_Win8.1_01.00_NL ->> BCDEdit to NL—> cmd /c bcdedit /set…

  • Transform AD User Group to Device Collection

    AD: The AD Computer object must fill in the ManagedBy field with the Primary User The AD User must be added to a AD User Group SCCM: System Discovery has to be extended with the ManagedBy field User Discovery has to be extended with the Distinguishedname field SCCM Collection Query: select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where…