powershell-intune-samples | PowerShell sample scripts show how to access Intune service | REST library

 by   microsoftgraph PowerShell Version: 236492 License: MIT

kandi X-RAY | powershell-intune-samples Summary

kandi X-RAY | powershell-intune-samples Summary

powershell-intune-samples is a PowerShell library typically used in Web Services, REST applications. powershell-intune-samples has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

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.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              powershell-intune-samples has a medium active ecosystem.
              It has 1043 star(s) with 575 fork(s). There are 167 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 56 open issues and 116 have been closed. On average issues are closed in 250 days. There are 23 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of powershell-intune-samples is 236492

            kandi-Quality Quality

              powershell-intune-samples has 0 bugs and 0 code smells.

            kandi-Security Security

              powershell-intune-samples has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              powershell-intune-samples code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              powershell-intune-samples is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              powershell-intune-samples releases are available to install and integrate.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of powershell-intune-samples
            Get all kandi verified functions for this library.

            powershell-intune-samples Key Features

            No Key Features are available at this moment for powershell-intune-samples.

            powershell-intune-samples Examples and Code Snippets

            No Code Snippets are available at this moment for powershell-intune-samples.

            Community Discussions

            QUESTION

            Can't deploy an app to Intune store via graph API - DeviceManagementApps.ReadWrite.All is an invalid scope?
            Asked 2018-Jul-25 at 20:17

            We want to enable uploading apps to the Intune store via an API. I saw this example on GitHub, and want to do something similar in JS, so I've tried using the same REST calls. The problem is, I can't seem to make the https://graph.microsoft.com/beta/deviceAppManagement/mobileApps request properly - I always get 401. When making the same request via the Graph API Explorer it works fine.

            I tried fixing my permissions, and I'm kinda stuck getting the correct token. I did the following steps with an admin account, on both the "common" and our own tennant:

            1. Called the admin consent - https://login.microsoftonline.com/nativeflow.onmicrosoft.com/adminconsent?client_id=&redirect_uri=

            2. Got authorization from the user - https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=&response_type=code&redirect_uri=&response_mode=query&scope=DeviceManagementApps.ReadWrite.All

            3. POST request to get the actual token - https://login.microsoftonline.com/nativeflow.onmicrosoft.com/oauth2/v2.0/token

              with the following body:

              ...

            ANSWER

            Answered 2018-Jul-25 at 20:17

            You have a couple issues going on:

            1. You're using the Authorization Code Grant workflow but requesting Client Credentials.

            2. The scope Device.ReadWrite.All is an application scope, it is only applicable to Client Credentials. It isn't a valid Delegated scope so it will return an error when you attempt to authenticate a user (aka delegate) using Device.ReadWrite.All.

            3. Your body is using key:value but it should be using standard form encoding (key=value).

            To get this working, you need to request a token without a user. This is done by skipping your 2nd step and moving directly to retrieving a token (body line-breaks are only for readability):

            Source https://stackoverflow.com/questions/51517406

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install powershell-intune-samples

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/microsoftgraph/powershell-intune-samples.git

          • CLI

            gh repo clone microsoftgraph/powershell-intune-samples

          • sshUrl

            git@github.com:microsoftgraph/powershell-intune-samples.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular REST Libraries

            public-apis

            by public-apis

            json-server

            by typicode

            iptv

            by iptv-org

            fastapi

            by tiangolo

            beego

            by beego

            Try Top Libraries by microsoftgraph

            microsoft-graph-docs

            by microsoftgraphPowerShell

            microsoft-graph-toolkit

            by microsoftgraphTypeScript

            msgraph-sdk-javascript

            by microsoftgraphTypeScript

            msgraph-sdk-dotnet

            by microsoftgraphC#

            msgraph-sdk-powershell

            by microsoftgraphPowerShell