Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use the following procedure to create the report in Advanced exercise 1: Create a new report for compliance settings in Configuration Manager.
Note
Depending on your experience at creating SQL Server reports, there are numerous paths you can use to create a report. You can use your preferred method of creating reports if you prefer.
To create the status of configuration baselines deployed to a specified computer report
In the Configuration Manager console, select Monitoring.
In the Monitoring workspace, expand Reporting, and then select Reports.
In the Home tab, in the Create group, select Create Report.
On the Information page of the Create Report Wizard, select SQL-based Report, and then supply the following information:
- Name: Enter Status of configuration baselines deployed to a specified computer.
- Description: Enter Displays the name and description of the configuration baselines that are deployed to a specific computer and whether the computer returns compliant or noncompliant for the configuration baseline.
- Server: This field is automatically entered. Ensure that it matches the name of your Reporting Server.
- Path: Select Browse to select the folder in which the new report will be stored. For this exercise, select Compliance and Settings Management.
To continue, select Next.
On the Summary page of the Create Report Wizard, review the information and then select Next.
On the Completion page of the Create Report Wizard, review the actions that were taken, and then select Close. Report Builder now opens to allow you to construct the report.
Next, you must create the datasets that this report will use to return results for the report. This report uses two datasets. The first of these is used to list computer names that can be selected to use as a basis for the report. The second contains the SQL statements for the report itself.
In the Report Data pane, right-click Datasets and then select Add Dataset.
On the Query page of the Dataset Properties dialog box, supply a name for the dataset, or use the default name, and then select Use a dataset embedded in my report.
In the Data source drop-down list, select the data source you want to use for the report. This is typically automatically generated and will begin with AutoGen_.
Select a query type of Text, and then enter the following query in the Query field.
SELECT DISTINCT SYS.Netbios_Name0 ��from v_R_System SYS WHERE SYS.Client0=1 ��ORDER By SYS.Netbios_Name0
Select OK to close the Dataset Properties dialog box. The new dataset, named by default DataSet1 is now displayed in the Datasets node of the Report Data pane.
You have now created the query that the report parameter will use to return the available client names from which you can choose to run the report.
Next create the parameter that the report will use to let you select the computer that will be reported on.
In the Report Data pane, right-click Parameters, and then select Add Parameter.
On the General page of the Report Parameter Properties dialog box, change the value in the Prompt field to read Computer name.
On the Available Values page of the Report Parameter Properties dialog box, select Get values from a query.
Select the following values:
- Dataset: Choose DataSet1
- Value field: Choose Netbios_Name0
- Label field: Choose Netbios_Name0
Select OK to close the Report Parameter Properties dialog box. The new parameter ReportParameter1 is displayed in the Parameters node of the Report Data pane.
At this point, run the report to check the parameter is working correctly. On the Home tab, in the Views group, select Run.
Verify that the Computer name field is shown. When you select this field, you should see all Windows client computers in the drop-down list.
On the Home tab, in the Views group, select Design to return to the design view.
Now, you must create the main dataset for the report.
In the Report Data pane, right-click Datasets and then select Add Dataset.
On the Query page of the Dataset Properties dialog box, supply a name for the dataset, or use the default name, and then select Use a dataset embedded in my report.
In the Data source drop-down list, select the data source you want to use for the report. This is typically automatically generated and will begin with AutoGen_.
Select a query type of Text, and then enter the following query in the Query field.
SELECT v_CICurrentComplianceStatus.ComplianceState, v_LocalizedCIProperties.DisplayName, v_LocalizedCIProperties.Description, v_R_System.Netbios_Name0 FROM v_CICurrentComplianceStatus INNER JOIN v_R_System ON v_CICurrentComplianceStatus.ResourceID = v_R_System.ResourceID INNER JOIN v_ConfigurationItems ON v_CICurrentComplianceStatus.CI_ID = v_ConfigurationItems.CI_ID INNER JOIN v_LocalizedCIProperties ON v_CICurrentComplianceStatus.CI_ID = v_LocalizedCIProperties.CI_ID WHERE (v_ConfigurationItems.CIType_ID = 2)
Select OK to close the Dataset Properties dialog box.
On the Insert tab, in the Data Regions group, select Table, and then select Table Wizard.
On the New Table or Matrix page of the wizard, select Choose an existing dataset in this report or a shared dataset, select DataSet2 and then select Next.
On the Arrange fields page of the wizard, drag ComplianceState, DisplayName, Description and Netbios_Name0 from the Available fields pane, to the Values pane.
Select Next to see a preview of your report, and then select Next again.
On the Choose a style page of the wizard, choose one of the available themes for the report, and then select Finish.
On the Home tab, in the Views group, select Run.
In the Computer name field, select a computer from the drop-down list, and then select View Report.
Verify that the data in the report is as expected.
Save and close the report in Report Builder.
The new report is now available in the Configuration Manager console.
Next steps
Report builder includes many options to change elements of reports, including themes, column headings and more. Consult your Report Builder help for more information.
See also
Advanced exercise 1: Create a new report for compliance settings in Configuration Manager