- Table of Contents
- Intro
- What is the Intune PowerShell SDK?
- Getting Started
- Seeing available commands
This is a quick repo / self-reference "wiki" of sorts (more info will be added to the 'Wiki' for this repo!)
It's a list of PowerShell cmdlets that connect directly to the Intune Graph API and lets you perform actions remotely via PowerShell instead of directly via Graph.
- Install the Microsoft.Graph.Intune module the direct repo here
- Alternatively, you can run this from a PowerShell session that you ran as Admin using a single command.
Install-Module -Name Microsoft.Graph.Intune
You can uninstall this PowerShell Module by simply running the below command:
Uninstall-Module -Name Microsoft.Graph.Intune
Connect-MSGraph
This is straightforward - If you have a non-standard environment, such as GCC-High, see official documentation here on how to connect and use it.
Note - other features, such as Conditional Access, can block this. Make sure you connect using a Global Administrator account.
You can use the following line to retrieve all commands available in the module (once connected)
Get-Command -Module Microsoft.Graph.Intune
However, this gives a massive list of commands, as seen below...
If you want to filter this list to be smaller, or you know what you are looking for - you can edit this command to do something such as... For example - I want a nice table of commands that are related to certificates.
Get-Command -Module Microsoft.Graph.Intune -Name *Cert* | FT CommandType,Name