IntuneCLI 2.1.1

dotnet tool install --global IntuneCLI --version 2.1.1                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local IntuneCLI --version 2.1.1                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=IntuneCLI&version=2.1.1                
nuke :add-package IntuneCLI --version 2.1.1                

IntuneAssistant

Welcome to The IntuneCLI. This CLI helps you managing Microsoft Intune environments.

In this very first version one small command is available to help you removing duplicate devices from Intune. The current version has two supported platforms, Windows and macOS.

The Windows client can be downloaded here: The IntuneCLI Windows
The macOS client can be downloaded here: The IntuneCLI macOS

Installation

This package can be downloaded as a dotnet tool. Make sure you have Dotnet 7 installed on your computer.

Install dotnet 7 sdk Windows

winget install --id Microsoft.DotNet.SDK.7 --source winget

Install dotnet 7 sdk macOS

Check the link on Mircosoft Learn

Add the nuget feed

dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org

This command will install the tool

dotnet tool install --global IntuneCLI

or to update to the latest version

dotnet tool update --global IntuneCLI

Clear nuget cache (if the tool is not found)

dotnet nuget locals all --clear

theintuneCLI.png

Authentication

To authentication use this command. The command opens a browser for interactive login.

./IntuneAssistant.Cli auth login

cliLogin.jpeg

To log out use:

./IntuneAssistant.Cli auth logout

Intune Assignments overview

To view all assignments in Intune use this command:

./IntuneAssistant.Cli show assignments

Intune Group Assignments overview

To view all assignments in Intune use this command:

./IntuneAssistant.Cli show assignments groups

To view a specific group based on group name, overview use this command:

./IntuneAssistant.Cli show assignments groups --group-name "All Users"

To view a specific group based on group id, overview use this command:

./IntuneAssistant.Cli show assignments groups --group-id 000-0000

To export the overview to CSV use:

./IntuneAssistant.Cli show assignments groups --group-id 000-0000 --export-csv filename.csv

intune-groupoverview

Help

If you need more information about all commands available use the -h option in a specific area.

./IntuneAssistant.Cli auth -h
./IntuneAssistant.Cli show devices -h
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2.1.1 790 4/29/2024
2.1.0 1,246 4/28/2024
2.0.0 1,433 3/27/2024
1.0.8 1,803 1/14/2024
1.0.7 1,800 1/3/2024
1.0.6 1,789 12/19/2023
1.0.5 1,533 12/11/2023
1.0.4 973 11/29/2023
1.0.3 348 11/28/2023
1.0.2 1,933 11/28/2023
1.0.1 1,307 11/28/2023