Sample Header Ad - 728x90

Help writing a Microsoft Intune compliance script for macOS

0 votes
1 answer
120 views
May I please get assistance with a [Microsoft Intune](https://learn.microsoft.com/en-us/mem/intune/fundamentals/what-is-intune) compliance script for macOS. If (app) is not installed set, device as non compliant. This is the srcipt I tried but its isn't working. I want to upload the script to intune so that intune can mark devices without Apex installed as non compliant.
#!/bin/sh
#Enter the Name of the Application here Apex One (Mac)
Security Agent="/Applications/Apex One (Mac) Security Agent"
echo $Apex One (Mac) Security Agent
#Check if Directory Exist
if [ ! -d $ApplicationName ]; then 
	echo $ApplicationName "is not installed"
	exit
fi
echo $ApplicationName " is installed"
Asked by Linux Guy (1 rep)
Sep 26, 2024, 09:35 AM
Last activity: Sep 26, 2024, 01:52 PM