powershell-intune-samples icon indicating copy to clipboard operation
powershell-intune-samples copied to clipboard

This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.

Results 107 powershell-intune-samples issues
Sort by recently updated
recently updated
newest added

When attempting to import from JSON (a file that contains a SecretReferenceValueId, I'm receiving the following error. This previously worked, and has seemingly stopped in the last few weeks. JSON...

An update that will decrypt any windows10CustomConfiguration policies with a property named isEncrypted = true Ref : https://docs.microsoft.com/en-us/graph/api/intune-deviceconfig-deviceconfiguration-getomasettingplaintextvalue?view=graph-rest-1.0

I'm trying to get a list of managed devices A single filter on devicename returns te correct results https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$filter=startsWith(deviceName,'D') A single filter on userdisplayName returns results But the combination of...

there is any way i can get list of users with no device enrolled ?

Hello Dave, Is there a particular reason that the script EndpointSecurityPolicy_Export.ps1 is not able to create a .json of the configurations based on the template "Endpoint detection and response"? Or...

Hi, When i call Assign-ManagedAppPolicy function within a foreach group to assign 10 AAD groups to an app protection policy, only the last group in the list gets added. no...

The function Get-AADGroup in many of the scripts shares the same name as the Alias of Get-Groups in the Microsoft.Graph.Intune Powershell module, it has different parameters and if it is...

The Microsoft graph API for androidManagedStoreAppConfiguration always giving 403 Forbidden error, while permissions required to call this API as background application already given to app. The API is working when...

Is there a way to output this into a .csv file 1 entry/row? ./Win10_PrimaryUser_get.ps1 -DeviceName "AUTOPname" I've tried Out-File, Export-csv Thank you!

Get-IntuneBrand : Request to https://graph.microsoft.com/Beta/deviceManagement/intuneBrandingProfiles failed with HTTP Status Unauthorized Unauthorized At line:1 char:1 + Get-IntuneBrand + ~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-IntuneBrand Permissions...