The following guide will demonstrate how to create a new report using Microsoft System Center Configuration Manager R3.
In this example we will be creating a report which prompts for a model type and then displays a list of all the systems that are the model type.
How to create a report using SCCM R3:
- With the Configuration Manager Console open,
- Example the ‘Computer Management’ node, then ‘Reporting’ and ‘Reports’
- Right click on ‘Reports’ (or your custom reporting folder)
- Select ‘New’ then ‘Report’
- Under ‘Name’ enter in the desired name, e.g. List Computers of a Specified Model Type
- Select a category, e.g. Device Management
- Click on the ‘Edit SQL Statement’ button
- Under ‘SQL statement’ enter the following code:
-
SELECT sys.Name0 as "Computer Name", sys.User_Name0, CSYS.Model0 FROM v_R_System sys JOIN v_GS_COMPUTER_SYSTEM CSYS on sys.ResourceID = CSYS.ResourceID WHERE CSYS.Model0 like @Model
- Click on the ‘Prompts’ button
- Click on the ‘New’ button (Yellow star icon)
- Under ‘Name’ enter Model
- Under ‘Prompt text’ enter Select a Model
- Place a tick next to ‘Provide a SQL statement’
- Click on the ‘Edit SQL Statement’ button
- Under ‘SQL statement’ enter the following code:
-
select Model0 from v_GS_COMPUTER_SYSTEM
- Click ‘OK’ to save the changes
- Click ‘OK’ several times to save the changes and return to the ‘New Report Wizard’
- Click ‘Next’ then ‘Next’ again
- Under ‘Link type’ select ‘Link to Computer Details’
- Click ‘Next’, ‘Next’ then ‘Close’
The run the report:
- Navigate to where the report was saved/created
- Right click on the report and select ‘Run’
- Click on ‘Values’ and select a model from your database or enter in a model name (you can use wild cards, e.g. “HP Compaq dc7100%”)
- Click ‘Display’ to run the report