Coder Social home page Coder Social logo

Comments (5)

ztrhgf avatar ztrhgf commented on July 1, 2024

Should be fixed with new 1.3.1 IntuneStuff module version

from useful_powershell_modules.

carvan avatar carvan commented on July 1, 2024

Thanks! I might be doing something wrong, I'm not getting the missing module error anymore, but that cmdlet doesn't work still:
image

from useful_powershell_modules.

ztrhgf avatar ztrhgf commented on July 1, 2024

I see. Specify 'header' parameter too for now. I need some time to fix this issue.

So create service principal with following graph api permissions (as stated in function NOTES help section):
Application.Read.All
Device.Read.All
DeviceManagementApps.Read.All
DeviceManagementConfiguration.Read.All
DeviceManagementManagedDevices.Read.All
ProgramControl.Read.All
Reports.Read.All

Create authentication header using this service principal credentials like:
$header = New-GraphAPIAuthHeader -credential (get-credential)

Call:
Get-IntuneReport -header $header -reportName AppInstallStatusAggregate

from useful_powershell_modules.

ztrhgf avatar ztrhgf commented on July 1, 2024

I've just published rewritten version of New-GraphAPIAuthHeader which uses MSAL instead of deprecated ADAL (check function help for more details).

Also permissions problem should be solved now for Get-IntuneReport even when authenticated as a user (global admin or similar with enough permissions to get Intune reports)

Check https://www.powershellgallery.com/packages/IntuneStuff/1.4.0

from useful_powershell_modules.

carvan avatar carvan commented on July 1, 2024

Perfect, thank you. I'll give it a try as soon as possibile.

from useful_powershell_modules.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.