Module 07 - EMDM Intune - Logging Reporting Managing Devices
Module 07 - EMDM Intune - Logging Reporting Managing Devices
Introduction
During this lab, you will learn how to run an Inventory, Retire, Wipe, run PowerBI reports and use
Graph API.
Estimated Time
45 minutes
Objectives
Logon Information
Use the following credentials to sign into the Lab on Demand Virtual environment on MMWS_Host
• Username: Admin
• Password: Intune123!!
Table of Contents
Lab1: Reviewing Inventory Data Collected via Intune ........................................................................................ 3
Exercise 1: Viewing Inventory Details of a device (e.g. iOS) ........................................................................ 3
Exercise 2: Intune Data Warehouse ....................................................................................................................... 6
Lab2: Passcode Reset ...................................................................................................................................................... 10
Exercise 1: Passcode reset for iOS Device.......................................................................................................... 10
Lab3: Remote Lock ........................................................................................................................................................... 11
Exercise 1: Remote Lock a device ......................................................................................................................... 11
Lab4: Selective-Full Retire/Wipe ............................................................................................................................... 12
Exercise 1: Retire a Windows 10 device ............................................................................................................ 12
Exercise 2: Retire an Android Enterprise device ............................................................................................ 13
Exercise 3: Retire an iOS device ............................................................................................................................. 14
Exercise 4: Retirement of an Android device administrator ..................................................................... 15
Exercise 5: Wipe an Android device administrator ....................................................................................... 16
Exercise 6: Configure automatic cleanup rules for devices ........................................................................ 17
Lab5: INTUNE, GRAPH and GRAPH EXPLORER ................................................................................................... 19
Exercise 1: Using Graph Explorer to retrieve data from your tenant .................................................... 19
Exercise 2: Use Graph Explorer to create, modify and delete a device category for a managed
device from the Intune portal ................................................................................................................................. 25
Lab1: Reviewing Inventory Data Collected via Intune
During this lab, you will learn how to view hardware inventory and compliance of devices.
Tasks
1. Retrieve Inventory data
Go to https://devicemanagement.microsoft.com/
Select Devices.
5. Review the hardware inventory data collected for the associated device.
Tasks
1. Integrate Power BI with Intune
Navigate to the Dashboard and select the Setup Intune Data Warehouse.
Select the button for Get Power BI App under the section Use Microsoft Power BI Online.
Select Install.
Click the Sign-in button and sign in with your administrative account.
Review the information from all the different tabs at the bottom.
Exercise 2 has been completed.
Lab2: Passcode Reset
Exercise 1: Passcode reset for iOS Device
This exercise shows how to perform a Passcode reset for Intune managed devices.
Tasks
1. Reset passcode.
Open the Intune Portal https://devicemanagement.microsoft.com and select Devices →
All Devices, then select an iOS device from the list
On <Device Name> - Page, click on the Overview section.
Note: For iOS it removes the existing passcode and does not create a temporary
passcode. If you are using the Touch ID fingerprint scanner for opening your device
or making purchases, you need to set it up again.
You will be prompted with a popup message Yes or No to initiate the Remove
passcode action, select Yes.
After a couple of minutes, look at the Intune portal, to see the updated status of the
device Passcode reset showing as completed.
On the iOS device, the following notification should appear: You must set an iOS
Unlock passcode within 60 minutes.
Select Continue to follow the instructions on the device to set a new passcode.
Exercise 1 has been completed.
Lab3: Remote Lock
Exercise 1: Remote Lock a device
This exercise shows how to perform Remote lock.
Tasks
1. Perform Remote Lock on the Android device.
Open the Intune Portal https://devicemanagement.microsoft.com and select Devices
→ All Devices, then select an Android device from the list.
On <Device Name> - Overview Page, select the Overview section.
On the Overview page, select Remote lock
When prompted with the popup message for Remote lock, choose Yes.
After a couple of minutes, the Portal updates the status of the device Remote lock to
succeeded on the device.
Tasks
1. Perform a Retire on Windows 10 device
Open the Intune Portal https://devicemanagement.microsoft.com and select Devices
→ All Devices, then select a Windows device from the list.
On the <Device Name> - Overview Page, select the Overview section.
On the Overview page, choose Retire to initiate selective wipe activity.
You will be prompted to remove company data, select Yes for the popup message:
Tasks
1. Perform a Selective Wipe on an Android Enterprise device.
Open the Intune Portal https://devicemanagement.microsoft.com and select Devices
→ All Devices, then choose an Android for work device from the list.
On the <Device Name> - Overview Page, select the Overview section.
On the Overview page, choose Retire to initiate selective wipe activity.
Note: The Wipe option is not available for Android Enterprise enrolled devices.
When prompted to remove company data, select Yes for the popup message.
Wait a few moments, then on the Android Enterprise enrolled device scroll down to
read the notification that says that the Work profile has been deleted.
Tasks
1. Perform Selective Wipe on Android Enterprise
Open the Intune Portal https://devicemanagement.microsoft.com and select Devices
→ All Devices, then select an iOS device from the list.
On the <Device Name> - Overview Page, select the Overview section.
On the Overview page, select Retire to initiate selective wipe activity.
When prompted to remove company data, choose Yes for the popup message.
After a few minutes, if the device is turned on, it receives the selective wipe within a
few minutes. As soon as you launch the Company Portal app, you should see a
notification popup indicating Device Unenrolled
Most of the settings applied are removed from the device. You can review the
following URL to see what has been removed by the selective wipe:
https://docs.microsoft.com/en-us/sccm/mdm/deploy-use/wipe-lock-reset-devices
Tasks
1. Perform Retirement of an Android device.
Open the Intune Portal https://devicemanagement.microsoft.com and select Devices
→ All Devices, then select an Android device from the list.
On the <Device Name> - Overview Page, select the Overview section.
On the Overview page, select Retire to initiate selective wipe activity.
You will be prompted to remove company data, click Yes on the popup message:
After a few moments open the Company Portal and you will see this pop-up.
Notice that your Line-Of-Business apps are removed from the device.
After some time, the device es deleted from Intune → Device →All devices view.
Most of the settings applied will be removed from the device.
You can review the following URL to see what is removed in a selective wipe:
https://docs.microsoft.com/en-us/intune/devices-wipe
Tasks
1. Wipe an Android device.
Open the Intune Portal https://devicemanagement.microsoft.com and select Devices
→ All Devices, then select an Android device from the list.
On the <Device Name> - Overview Page, select the Overview section.
On the Overview page, select Wipe to initiate selective wipe activity.
When prompted to factory reset the device, choose Yes for the popup message:
When the Wipe process starts, the device will restart and you will see the erasing
process bringing the device to its factory settings.
Exercise 5 has been completed.
Exercise 6: Configure automatic cleanup rules for devices
This exercise shows how to configure cleanup rules for an Intune managed device.
Tasks
1. Configure automatic cleanup rules
Open the Intune Portal https://devicemanagement.microsoft.com and select Devices
→ (Other), then select Device clean-up rules:
When prompted to Delete devices based on last check-in date select Yes.
For Delete devices that haven't checked in for this many days, enter 90.
Choose Save – Device cleanup rules and then select Yes to enable the cleanup rule.
Exercise 6 has been completed.
Lab5: INTUNE, GRAPH and GRAPH EXPLORER
Exercise 1: Using Graph Explorer to retrieve data from your
tenant
This exercise shows how to see your managed devices using Graph explorer and compare with
what is in the Intune portal.
Tasks
1. See your managed devices from Intune portal by Using Microsoft Graph Explorer.
Open Graph Explorer from https://developer.microsoft.com/en-us/graph/graph-
explorer#
Once signed in you will notice an access token on the left side of the window. Any call
made against Microsoft Graph requires an access token which can only be issued by Azure
Active Directory, thus having a tenant is mandatory.
If you click on modify permissions, you will notice that some of them are already
marked. Microsoft Graph exposes granular permissions that control the access that
apps have to resources, like users, groups, and device management (with Intune). For
your application to be able to access Intune data, depending on its purpose, some or
all of these permissions needs to be granted.
Below is an example of the Intune portal when retrieving the HTTP command for
the managed devices:
Copy copied the Request URL from there, go to Graph Explorer and paste the URL at the
top and click Run Query. In the response preview you will see all the details of the
managed devices you have in your Intune portal.
If this is the first time, you are running the request you may get a Permission denied error
Select modify your permission and select DeviceManagementManageDevices.ReadAll
And log back in to Graph Explorer, then Click Accept at the pop-up
Security is particularly important!
Tasks
1. Create a device category of a managed device from the Intune portal by Using
Microsoft Graph Explorer.
In order to create a device category, first check if there are any existing device
categories. Navigate to Devices → Device Categories.
Mark the box for Create device category, give it a name (for example: test) and click the
Create button.
Using the F12, debugger mode, copy the Request URL that shows the category list.
https://graph.microsoft.com/beta/deviceManagement/deviceCategories and paste
it into the Graph Explorer.
Now that we have listed the available device categories, we will start creating two
device categories using Graph Explorer.
To create device categories you will need to use the command from doc:
https://docs.microsoft.com/en-us/graph/api/intune-shared-devicecategory-
create?view=graph-rest-1.0
Copy the URL below and paste it into Graph Explorer and change the command to
POST instead of GET using the drop-down arrow.
POST https://graph.microsoft.com/v1.0/deviceManagement/deviceCategories
Paste the data below into the Request Body.
{
"@odata.type": "#microsoft.graph.deviceCategory",
"displayName": "Company 1",
"description": "My Company Name"
}
You will gen another permission error if you are doing this for the first time.
2. Update a device category of a managed device from Intune portal by Using Microsoft
Graph Explorer.
In this task we will update the device category we created earlier on called “Company
1” using Graph Explorer. Therefore, in order to perform this test, we will first identify
what is the API command that we need to update.
https://docs.microsoft.com/en-us/graph/api/intune-shared-devicecategory-
update?view=graph-rest-1.0
Retrieve the device category ID from a device you want to change category for using
GET https://graph.microsoft.com/v1.0/deviceManagement/deviceCategories
Copy the URL below and paste it into Graph explorer changing the command to
PATCH instead of GET.
PATCH
https://graph.microsoft.com/v1.0/deviceManagement/deviceCategories/{deviceCate
goryId}
Where the deviceCategoryId is taken from the GET Query.
{
"displayName": "Company 2",
"description": "Test value CHANGED"
}
3. Delete a device category for a managed device from the Intune portal by Using
Microsoft Graph Explorer.
To delete the device category, we will use the command as per doc:
https://docs.microsoft.com/en-us/graph/api/intune-shared-devicecategory-
delete?view=graph-rest-1.0
Copy the URL below and paste it into Graph explorer changing the command to PATCH
instead of GET.
DELETE
https://graph.microsoft.com/v1.0/deviceManagement/deviceCategories/{deviceCate
goryId}
Copy the ID of the category you want to delete and paste it into the graph command
and run query.