Microsoft Intune: Installer
Source: Download script
Last Updated: 11. September 2025 by Agnete Moos (agms@sonderborg.dk)
Parameters:
Navn | Type | Standardværdi | Påkrævet |
---|---|---|---|
Click to see the source code
#! /usr/bin/env sh
# This script is written based off the following guide:
# https://learn.microsoft.com/en-us/mem/intune/user-help/microsoft-intune-app-linux
export DEBIAN_FRONTEND=noninteractive
PKG="intune-portal"
ACTIVATE="$1"
if [ "$ACTIVATE" = "True" ]; then
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
install -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/ubuntu/22.04/prod jammy main" > /etc/apt/sources.list.d/microsoft-ubuntu-jammy-prod.list
rm microsoft.gpg
apt-get update
apt-get install --assume-yes $PKG
else
apt-get remove --assume-yes $PKG
rm /usr/share/keyrings/microsoft.gpg
fi
Beskrivelse
Dette script installerer Microsoft Intune, baseret på Microsofts egen vejledning dertil, som findes her: https://learn.microsoft.com/en-us/mem/intune/user-help/microsoft-intune-app-linux
Bemærk: Dele af dette script er skrevet specifikt til 22.04, så det vil ikke virke i 20.04 i sin nuværende form.