IntuneCLI 1.0.4
See the version list below for details.
dotnet tool install --global IntuneCLI --version 1.0.4
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local IntuneCLI --version 1.0.4
#tool dotnet:?package=IntuneCLI&version=1.0.4
nuke :add-package IntuneCLI --version 1.0.4
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
Authentication
To authentication use this command. The command opens a browser for interactive login.
./IntuneAssistant.Cli auth login
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
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
This package has no dependencies.