powershell-intune-samples
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.
Hi all, I think I may have found a bug, when using the Win32_Application_Add.ps1 when uploading the file content for a new win32 app in intune. Specially after alot of...
Hello, After successfully deleting an Intune policy of the type 'hardwareConfigurations', I still can retrieve its value when invoking GET request to the API using the policy's Id. Below, a...
File/folder locations changed on lines 1349 - 1378.
Hello there, I'm trying to find the documentation associated to this call in Win10_PrimaryUser_Set.ps1 (https://github.com/microsoftgraph/powershell-intune-samples/blob/master/ManagedDevices/Win10_PrimaryUser_Set.ps1) ``` $graphApiVersion = "beta" $Resource = "deviceManagement/managedDevices('$IntuneDeviceId')/users/`$ref" ... $uri = "https://graph.microsoft.com/$graphApiVersion/$($Resource)" $userUri = "https://graph.microsoft.com/$graphApiVersion/users/" +...
Not sure if it was a missed step, unclear instructions, or intentional, but every time I start a new PS session and run connect-msgraph, I need to run "Update-MSGraphEnvironment -appid...
DeviceConfiguration_Import_FromJSON.ps1 is no longer working
Get-WmiObject is depracated (https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-wmiobject?view=powershell-5.1) This caused an issue when running with PowerShell 7 as a I received: The term 'Get-WmiObject' is not recognized as a name of a cmdlet, function,...
Most of these scripts were initially built with PowerShell 5 and do not work with PowerShell 7 as-is. If you find yourself working through this, two key changes you need...
We are getting the error "AADSTS50013: No reply address is registered for the application." and are not sure what we may have missed.  We followed the documentation located [here](https://github.com/microsoftgraph/powershell-intune-samples/blob/master/Updating%20App%20Registration)...
After newest updates : Sorry, but we’re having trouble signing you in. AADSTS90013: Invalid input received from the user.