Hello Federico
In Intune, you can use the "Device configuration" feature to view the policies applied to a device. Here are the steps:
- Go to the Microsoft Endpoint Manager (MEM) portal and sign in with your credentials.
- Navigate to the "Devices" tab and select the device you want to view policies for.
- Click on the "Device configuration" tab.
- Scroll down to the "Configuration policies" section.
- Click on the "Edit" button next to "Configuration policies".
- This will take you to a list of all the policies applied to the device.
You can also use the Azure portal to view device configuration:
- Sign in to the Azure portal (https://portal.azure.com/) with your credentials.
- Navigate to "Azure Active Directory" > "Devices" > "Devices" (in the left-hand menu).
- Select the device you want to view policies for.
- Click on the "Overview" tab.
- Scroll down to the "Configuration policies" section.
- Click on the "View details" button next to "Configuration policies".
- This will show you a list of all the policies applied to the device.
You can also use PowerShell to retrieve device configuration using the Get-IntunePolicy
cmdlet:
CopyConnect-AzureADGet-IntunePolicy -Device <DeviceId>
Replace <DeviceId>
with the ID of the device you want to retrieve policy information for.
Note: The Get-IntunePolicy
cmdlet only returns policies that are applied through Intune, not local group policy or other non-Intune sources.
As for getting a similar output to what you would get with gpresult /h
, you can use the following PowerShell command:
CopyGet-IntunePolicy -Device <DeviceId> | ConvertTo-Html -Fragment | Out-File -FilePath C:\path\to\file.html
This will generate an HTML file that shows a table with all the applied policies, similar to what you would get with gpresult /h
.In Intune, you can use the "Device configuration" feature to view the policies applied to a device. Here are the steps:
- Go to the Microsoft Endpoint Manager (MEM) portal and sign in with your credentials.
- Navigate to the "Devices" tab and select the device you want to view policies for.
- Click on the "Device configuration" tab.
- Scroll down to the "Configuration policies" section.
- Click on the "Edit" button next to "Configuration policies".
- This will take you to a list of all the policies applied to the device.
You can also use the Azure portal to view device configuration:
- Sign in to the Azure portal (https://portal.azure.com/) with your credentials.
- Navigate to "Azure Active Directory" > "Devices" > "Devices" (in the left-hand menu).
- Select the device you want to view policies for.
- Click on the "Overview" tab.
- Scroll down to the "Configuration policies" section.
- Click on the "View details" button next to "Configuration policies".
- This will show you a list of all the policies applied to the device.
You can also use PowerShell to retrieve device configuration using the Get-IntunePolicy
cmdlet:
CopyConnect-AzureADGet-IntunePolicy -Device <DeviceId>
Replace <DeviceId>
with the ID of the device you want to retrieve policy information for.
Note: The Get-IntunePolicy
cmdlet only returns policies that are applied through Intune, not local group policy or other non-Intune sources.
As for getting a similar output to what you would get with gpresult /h
, you can use the following PowerShell command:
CopyGet-IntunePolicy -Device <DeviceId> | ConvertTo-Html -Fragment | Out-File -FilePath C:\path\to\file.html
This will generate an HTML file that shows a table with all the applied policies, similar to what you would get with gpresult /h
.