How to create a custom report that shows all Mac's with specified application installed?
Sometimes it is required to have a SCCM Report that shows a list of Mac's that have this or that application installed. Since Parallels Mac Management stores Mac application data differently than SCCM, it is required to create a custom report. Please follow the next steps in order to create a custom report:
Open SCCM Console and navigate to Monitoring -> Overview -> Reporting -> Reports -> Create Report:
In the Information page of Create Report Wizard:
Choose SQL-based Report in Type field.
Fill in Name field (e.g.
Mac's with specified application).
Click Browse... near the Path field and choose the folder you want to store the report in.
Click Next on Summary page of Create Report Wizard.
Wait for report deploying is finished and click Close on Completion page of Create Report Wizard.
When you finish, you should notice that SQL Server Report Builder should now open (if it's not opened, locate the report you created, right-click it and choose edit). Provide privileged user credentials when asking.
Click Table or Matrix in opened Microsoft SQL Server Report Builder:
In the opened New Table of Matrix:
Choose Create a dataset and click Next on Choose a dataset page.
Choose Data Source Connection and click Next on Choose a connection to a data sorce page (if required provide user credentials and click OK in opened Enter Data Source Credentials dialog ).
Expand dbo -> Views -> v_GS_COMPUTER_SYSTEM and select e.g. the following fields in Database view pane:
Note: You can use dbo -> Views -> v_R_SYSTEM and choose e.g.
NetBios_Name0or any other views and fields depending on what data you want the report to contain.
Expand dbo -> Views -> v_GS_ADD_REMOVE_PROGRAMS and select e.g. the following fields in Database view pane:
- Expand Relationships section if it is minimized.
- Click Auto Detect option (uncheck it if checked).
Click Add Relationship button .
Click on cell in Left Table column and choose Tables in Current Query -> v_GS_ADD_REMOVE_PROGRAMS
Click on cell in Right Table column and choose Tables in Current Query -> v_GS_COMPUTER_SYSTEM (or v_R_SYSTEM, depending on your choice in step above):
Double click on cell in Join Fields column.
Click Add Field in Edit Related Fields dialog.
Click on cell in Left Join Filed column and choose
RecourceIDfrom opened list.
Click on cell in Right Join Filed column and choose
RecourceIDfrom opened list:
Click OK to close Edit Related Fields dialog.
Click Run Query to view the result and check that query works.
Click Next on Design a query page of New Table or Matrix dialog.
Select all fields in Available fields box and drag and drop them into Values box on Arrange fields page.
Click Next on Arrange fields page.
Click Next on Choose the layout page.
- Choose style and click Finish > > on Choose a style page.
At this point we have a report that will show all applications installed on all Mac's. To make this report show all Mac's that have a specified application installed, please continue editing:
Right-click Parameters in the left pane of Microsoft SQL Server Report Builder > Add Parameter...:
In General tab of Report Parameter Properties dialog, specify the Name, e.g. app_name, specify the Prompt, e.g. Application name:
Click OK to close Report Parameter Properties dialog.
Expand Datasets in the left pane and right-click the dataset > Query:
Click on Edit as Text button to modify the query manually:
Paste the following the following conditions in the end of the query (to make a query select Mac's with specified applications installed):
WHERE v_GS_ADD_REMOVE_PROGRAMS.DisplayName0 LIKE '%' + @app_name + '%' AND v_GS_COMPUTER_SYSTEM.Description0 LIKE 'OS X 10.%'
Click OK to close Query Designer.
- Click Save button on Microsoft SQL Server Report Builder dialog to save the created report and close it.
Mac's with specified application report has been created. Now you can run it, specify an application and view all Mac's that have this application installed: