Include AD Group Content in SCCM Collection

This article details the process to include the content of an AD Group in a SCCM collection using a query. When a machine is added in the AD group, the SCCM collection is automatically populated after its next refresh.   When the membership rules of a collection are defined (when the collection is created or later … Read more

SCCM Collection Query

1. All Desktops The following query allows to include all desktops in a collection using the detection of the ChassisTypes (being a part of Win32_SystemEnclosure) 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_SYSTEM_ENCLOSURE on SMS_G_System_SYSTEM_ENCLOSURE.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SYSTEM_ENCLOSURE.ChassisTypes in ( “3”, “4”, “5”, “6”, “7”, “15”,”16″) ChassisTypes 3 : Desktop (including virtual machines) … Read more

SCCM Policy Retrieval

1. Locally on the Workstation On the client workstation: Go to Control Panel Select “Configuration Manager” Go to the “Action” tab Select “Machine Policy Retrieval & Evaluation Cycle” Click “Run Now” . . 2. Remotely from the SCCM Console On the SCCM console: In “Assets and compliance”, select the collection Double-Click on the collection, the … Read more

SCCM Task Sequence Remaining in “Installing” Status

Problem The Task Sequence deployment downloads, installs, and reports back success but when you open up Software Center on the client it still shows “Installing”. It seems that the problem comes from the dependency of CCMexec on SMSTSMgr. Basically the CCMExec service has to start before the SMSTSMgr service can, and it’s visibly not the … Read more

Monitoring SCCM Deployments

In “Monitoring”, go to the “Deployments” section. The list of all deployments is displayed… In the “Search” field, type the deployment to monitor then click the “Search” button             . Select the deployment, a status appears above           . To have more details, click “View Status” … Read more

Send Variable to SCCM Task Sequence

In this example, we launch the command cctk.exe –tpm If the result is equal to “tpm=on”, $TPMvalue variable is set to “on”, else $TPMvalue variable is set to “off” tpm variable is send to the task sequence with the value of $TPMvalue To retrieve the information in the Task Sequence, use the variable “tpm” (value … Read more

SCCM Deployments with PowerShell

The following script allows to create a deployments on SCCM Deployment of an application (asap) Deployment of a package (asap after an available date/time) Deployment of a task sequence (scheduled using WMI) The deployments of the application and the package are enforced as soon as possible but it’s also possible to schedule them by setting … Read more

SCCM 2012 R2 – Package Implementation and Deployment

1. Global Process Here is the global process to implement and distribute a package to user’s workstations. In prerequisite, the package must have been created and copied in the SCCM repository. There are 2 ways to implement a package in SCCM: the “Package” model (the easiest and fastest way), and the “Application” model (more powerful, … Read more

SCCM Collections with PowerShell

The following script allows to create a collection in a specific folder in SCCM. Import of the SCCM module Check if the collection already exist Creation of the collection with a specific limiting collection if not already existing in the folder To work properly, this script must be launched from a server with the SCCM … Read more