Microsoft Configuration Manager (SCCM)
The SCCM Integration imports the computers in Microsoft Configuration Manager (formerly System Center Configuration Manager, SCCM) into xAssets as asset records. It brings hardware, installed software, disks, network addresses and Windows updates for each computer.
The integration reads the Configuration Manager site database directly with SQL queries. There is no API call and no credential pack. A collection server runs the queries with Windows authentication, as the account of its xAssets Discovery Service.
Prerequisites
Before you start, check that you have the following:
- A Configuration Manager site with its site database on SQL Server. The database is usually named
CM_<site code>, for exampleCM_ABC. - A collection server that can reach the site database server. The ODBC Collection Server setting (
ODBCCollectionServer) names it. The shipped value isPRIMARY. - A SQL Server login for the collection server's service account. Find the account on the Log On tab of the xAssets Discovery Service 7 service on that collection server. The login needs read access to the site database: membership of the
db_datareaderrole is enough. - Network access from the collection server to the SQL Server: TCP port 1433 for a default instance. A named instance also needs the SQL Server Browser service (UDP port 1434), or a fixed port in the server name.
- The xAssets Batch Service must be running (the integration runs as a batch job).
Data Read from Configuration Manager
The integration reads only. It reads the views v_R_System, v_GS_PC_BIOS, v_GS_PROCESSOR, v_GS_PHYSICAL_MEMORY, v_GS_COMPUTER_SYSTEM_PRODUCT, v_AgentDiscoveries, v_UpdateScanStatus, v_UpdateComplianceStatus, v_UpdateInfo, v_UserMachineRelationship and v_UserMachineIntelligence. It also reads the inventory tables behind them, such as Computer_System_DATA, Add_Remove_Programs_DATA, Add_Remove_Programs_64_DATA, Logical_Disk_DATA, Network_DATA, PC_Memory_DATA, Processor_DATA, Operating_System_DATA and the software inventory tables. The db_datareader role gives read access to each of them.
Setup
Step 1: Grant Read Access to the Site Database
A SQL Server administrator on the site database server runs these statements. Replace the account and database names with your own.
CREATE LOGIN [DOMAIN\xassets-service] FROM WINDOWS;
USE [CM_ABC];
CREATE USER [DOMAIN\xassets-service] FOR LOGIN [DOMAIN\xassets-service];
ALTER ROLE db_datareader ADD MEMBER [DOMAIN\xassets-service];
If the xAssets Discovery Service 7 runs as Local System or Network Service, it reaches a remote SQL Server as the computer account. Use DOMAIN\COLLECTIONSERVERNAME$ as the login name.
Step 2: Enter the Database Location in xAssets
- Open Admin > Settings.
- Set SCCM Server for SCCM Integration (
SCCMServer) to the SQL Server that holds the site database, for exampleSQLSERVER01orSQLSERVER01\INSTANCE. - Set SCCM Database Name for SCCM Integration (
SCCMDatabase) to the site database name, for exampleCM_ABC. - Check ODBC Collection Server (
ODBCCollectionServer). It must name a collection server that can reach the SQL Server.
The collection server opens this connection:
server=<SCCMServer>;database=<SCCMDatabase>;integrated security=true
Step 3: Review the Other Settings
These settings are in Admin > Settings. Most are in the Integrations class. The disposal settings are in Disposal and Transfers. The serial number settings are in Discovery. The Settings tab of the integration's Setup dialog lists the ones whose codes start with SCCM.
| Setting | Code | Shipped Value | Effect |
|---|---|---|---|
| SCCM Batch Size | SCCMBatchSize |
200 |
Computers read in each query. Lower it if the queries time out. A blank value means 250 |
| SCCM Batches Per Run | SCCMBatchesPerRun |
0 |
Batches read in one run. 0 reads every computer that needs updating |
| SCCM - Only Import Active Computers | SCCMOnlyImportActiveComputers |
0 |
Select it to import only computers Configuration Manager marks as active. A blank value counts as on |
| SCCM heartbeat - add number of days to extend tolerance | SCCMForceInactiveAfterDaysNoHeartbeat |
3000000 |
A computer with no heartbeat for this many days is treated as inactive. The shipped value turns the check off in practice |
| Leave out virtual machines discovered in SCCM | SCCMExcludeVMs |
0 |
Set it to 1 to skip virtual machines |
| Include Desktop Monitors for Computers discovered in SCCM | SCCMDiscoverMonitors |
0 |
Set it to 1 to import the monitors attached to each computer |
| Collect software for Mac computers discovered in SCCM | SCCMMacSoftware |
0 |
Set it to 1 to read installed software for Macs and for computers with no Add/Remove Programs data |
| Get SCCM Full Software | GetSCCMFullSoftware |
1 |
Reads every installed software record. When it is clear, only Add/Remove Programs data is read |
| SCCM Integration Collection Server | SCCMCollectionServer |
Blank | The collection server that reads the Configuration Manager database. Blank uses the ODBC Collection Server setting |
| SCCM Integration - minimum hours between updates of a computer | SCCMMinHoursBetweenUpdates |
24 |
A computer updated in xAssets within this many hours is not read again |
| SCCM Integration - only import computers with system data | SCCMOnlyImportCompleteComputers |
1 |
Skips computers that have no computer system data in Configuration Manager |
| SCCM Integration - add duplicate serial numbers to the append list | SCCMAutoAddDuplicateSerialsToAppendList |
0 |
Set it to 1 to add serial numbers shared by several computers to the Serial Number Append List setting, so each computer becomes its own asset |
| Serial Number Append List (Discovery class) | SerialNumberAppendList |
Blank | A comma-separated list of serial numbers shared by several computers. A computer whose serial number is on the list gets the computer name added to it, for example To be filled by O.E.M./PC042. Each computer then becomes its own asset. xAssets discovery uses the same list |
| Clean Serial Numbers during Discovery Load Now (Discovery class) | DiscoveryCleanSerialNumbers |
2 |
How duplicate and placeholder serial numbers are cleaned before the load, the same way as for xAssets discovery. 2 uses the new method (recommended). 1 uses the old method. 0 does no cleaning |
| Enable Import of User Device Affinity for Assets | SCCMUserDeviceAffinity |
1 |
Uses the Configuration Manager user device affinity to set the asset's user |
| Include Domain in AD User Import | ADUserIDIncludeDomain |
1 |
Builds user IDs as DOMAIN\user when on |
| SCCM Integration can Dispose of Assets no longer in SCCM | SCCMCanDispose |
0 |
Set it to 1 to dispose of assets as described below. Only the value 1 turns it on |
| SCCM Status to Set When an Asset is Removed From SCCM | SCCMDisposal |
8 |
The status ID given to assets the integration disposes of |
| Custodian Authority - Microsoft SCCM | CustodianMatch_SCCM |
AddEdit |
Whether the integration can add and edit custodians. See Custodian Matching and Integration Authority |
With SCCM Integration can Dispose of Assets no longer in SCCM on, the integration disposes of in-service assets in these cases:
- Configuration Manager marks the computer as decommissioned, obsolete or inactive.
- The computer is no longer in Configuration Manager.
- An asset first imported from Configuration Manager is no longer in its computer list.
Step 4: Run the Integration
- Click the Settings gear icon (top right) > Integrations.
- Select SCCM Integration by clicking its row.
- Click Queue at the top of the screen. Alternatively, click the Start icon in the row to run it at once. No credentials dialog appears.
- Watch the status in the batch job area. The stages are:
SCCM Integration is starting
Collecting List of Computers in SCCM
N Computer Records Found in SCCM (M First Seen)
Extracting Batch 1 of 5 with 200 Computers from SCCM (Total 1000)
Preparing to Load N Computers extracted from SCCM
SCCM Integration Completed - (N Computers Loaded)
Step 5: Check the Results
- Open the Asset List and filter by Source =
SCCM. - Open one asset and check the hardware details, the Software tab and the network addresses.
Imported Data
Each run first reads the list of computers and stores it in xAssets. A computer is read in full only when it has changed in Configuration Manager since its last import. At least 24 hours must also have passed. The first run reads every computer, in batches.
For each computer the integration imports:
- Asset details -- computer name, serial number, manufacturer, model, operating system, memory, processor, IP address and last user
- Installed software -- Add/Remove Programs entries, 32-bit and 64-bit. They go through software recognition like discovered software
- Disks, processors and memory slots
- Device Manager entries, including display adapters
- MAC addresses and IP addresses
- Windows updates and their compliance state
- Monitors, when Include Desktop Monitors for Computers discovered in SCCM is on
To import a list of named computers, use the Discover a Named List of Computers in SCCM transformation.
Troubleshooting
Login failed for user
The collection server's service account has no login on the SQL Server, or no user in the site database. Check the account on the Log On tab of xAssets Discovery Service 7, then repeat Step 1 for that account.
Cannot open database or server not found
Check SCCM Server for SCCM Integration and SCCM Database Name for SCCM Integration. Check that the collection server named in ODBC Collection Server can reach the SQL Server port.
Query timeout
Lower SCCM Batch Size, for example to 100.
No Computers found to extract from SCCM
The computers were all imported in the last 24 hours, or none has changed since its last import. With SCCM - Only Import Active Computers on, inactive computers are skipped too.
Scheduling
Schedule the SCCM Integration to run daily. See Schedules.
Related Articles
- Microsoft Intune -- importing Intune-managed devices
- Custodian Matching and Integration Authority -- which integrations can add and edit custodians
- Schedules -- automating integration runs