Skip to content

daduckMSFT/intunePS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

Intro

Back to top

This is a quick repo / self-reference "wiki" of sorts (more info will be added to the 'Wiki' for this repo!)

What is the Intune PowerShell SDK

Back to top

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.

Getting Started

Setup

Back to top

  • 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

Setup

Uninstallation

Back to top

You can uninstall this PowerShell Module by simply running the below command:

Uninstall-Module -Name Microsoft.Graph.Intune

Uninstallation

Connecting to the Intune Service

Back to top

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.

Seeing available commands

Back to top

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... Retrieving ALL commands in the Module

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

Filtered commands for certificates

Back to top

About

Useful Intune PowerShell SDK commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages