Skip to content

Commit e225548

Browse files
authored
New Custom Attributes, updated "README.md" -files and fixes to log locations. (#155)
* Added Qualys Added new app: Qualys. * Added "Check Qualys Subscription Status" Added "Check Qualys Subscription Status". * Added "Check Gatekeeper Status" Added "Check Gatekeeper Status". * Custom Attributes for browser version cheks Custom Attributes for browser version checks. * Update installQualys.zsh * Update qualysSubscriptionInstaller.zsh * Update fetchMicrosoftEdgeVersion.sh * Update fetchFirefoxVersion.sh * Update fetchGoogleChromeVersion.sh * Update CheckQualysSubscriptionStatus.zsh * Added Illumio VEN Added Illumio VEN * Added new custom profile Added new custom profile. * Added new files regarding to GlobalProtect Added new files regarding to GlobalProtect * Added new policy Added new policy * Added Gatekeeper Enabler Added Gatekeeper Enabler * Update README.md * Update README.md * Update README.md * Add files via upload * Delete macOS/Custom Profiles/Microsoft OneDrive - Full Disk Access directory * Delete macOS/Custom Profiles/Qualys - Full Disk Access directory * Add files via upload * Update README.md * Added new custom profiles of Terminal These custom profiles of Terminal will address following CIS Benchmark Recommendation of macOS 14.0 Sonoma hardenings: - 2.3.3.5 Ensure Remote Login Is Disabled (Automated) - 2.3.3.7 Ensure Remote Apple Events Is Disabled (Automated) - 6.4.1 Ensure Secure Keyboard Entry Terminal.app Is Enabled (Automated) * Update README.md * Update readme.md * Add files via upload * Update readme.md Read Me modifies so it will include more information fo two different scripts that can do device renaming as an example. * Update DeviceRename2.sh This another script example renames a Mac device enrolled from Apple Business Manager by looking at the defined ISO 3166 country code you have configured to the script and at the serial number of the device. This script is ideal for situations when you want to rename Corporate-devices that are on Apple Business Manager and not rename BYOD-devices. * Update Terminal - Full Disk Access.mobileconfig * Update Terminal - Full Disk Access.mobileconfig * Update README.md * Update README.md Fixed typos. * Enable "Show all filename extensions" -Setting from Finder This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - **CIS**: Ensure Show All Filename Extensions Setting is Enabled (Automated) - **NIST**: N/A * Delete Guest Home Folder This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure the Guest Home Folder Does Not Exist (Automated) - NIST: N/A * Enable Apple Mobile File Integrity (AMFI) This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Apple Mobile File Integrity (AMFI) Is Enabled (Automated) - NIST: Enforce Apple Mobile File Integrity * Ensure an Administrator Account Cannot Login to Another User's Active and Locked Session This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure an Administrator Account Cannot Login to Another User's Active and Locked Session (Automated) - NIST: Disable Login to Other User's Active and Locked Sessions * Disable HTTP Server This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure HTTP Server Is Disabled (Automated) - NIST: Disable the Built-in Web Server * Disable NFS Server This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure NFS Server Is Disabled (Automated) - NIST: Disable Network File System Service * Disable Bluetooth Sharing This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Bluetooth Sharing Is Disabled (Automated) - NIST: Disable Bluetooth Sharing * Disable DVD or CD Sharing This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure DVD or CD Sharing Is Disabled (Automated) - NIST: Disable CD/DVD Sharing * Require Administrator password to access System-Wide Preferences This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure an Administrator Password Is Required to Access System-Wide Preferences (Automated) - NIST: Require Administrator Password to Modify System-Wide Preferences * Disable Guest Access to Shared Folders This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Guest Access to Shared Folders Is Disabled (Automated) - NIST: Disable Guest Access to Shared SMB Folders * Disable Power Nap for Intel Macs This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Power Nap Is Disabled for Intel Macs (Automated) - NIST: Disable Power Nap * Disable Internet Sharing This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure an Administrator Password Is Required to Access System-Wide Preferences (Automated) - NIST: Disable Internet Sharing * Disable Remote Management This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Remote Management Is Disabled (Automated) - NIST: Disable Remote Management * Disable Printer Sharing This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Printer Sharing Is Disabled (Automated) - NIST: Disable Printer Sharing * Disable Remote Apple Events This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Remote Apple Events Is Disabled (Automated) - NIST: Disable Remote Apple Events * Disable Remote Login This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Remote Login Is Disabled (Automated) - NIST: N/A * Disable Media Sharing This Custom Profile is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Media Sharing Is Disabled (Automated) - NIST: Disable Media Sharing * Disable "Show Password Hints" This Custom Profile is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Show Password Hints Is Disabled (Automated) - NIST: Disable Media Sharing * Disable File Sharing This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure File Sharing Is Disabled (Automated) - NIST: Disable Server Message Block Sharing * Show Wi-Fi Status Permanently in Menu Bar This Custom Profile is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Show Wi-Fi status in Menu Bar Is Enabled (Automated) - NIST: N/A * Access to Secure User's Home Folders This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Home Folders Are Secure (Automated) - NIST: Secure User's Home Folders * Access to Audit Recods is Controlled This Custom Script is required when implementing following CIS or NIST Recommendations for macOS: - CIS: Ensure Access to Audit Records Is Controlled (Automated) - NIST: ------ Configure Audit Log Folders to be Owned by Root ------ Configure Audit Log Folders Group to Wheel ------ Configure Audit Log Folders to Mode 700 or Less Permissive * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Moved folder to correct sub-folder. * Add files via upload * Update illumioVENRegistrationInstaller.sh Script enhanced. * Update illumioVENRegistrationInstaller.sh * Update illumioVENRegistrationInstaller.sh * Add files via upload * New Custom Attribute: Fetch Illumio VEN Version New Custom Attribute: Fetch Illumio VEN Version. * Update README.md Fixed typo. * Update DisableBluetoothSharing.zsh Fixed logandmetadir location. * Update ShowAllFilenameExtensions.zsh Fixed logandmetadir location. * Update EnableOneDriveFinderSync.sh Script updated with new log location. * Update README.md Fixed typo. * Update README.md Updated log path. * Update README.md Fixed log path. * Update README.md Log location updated. * Update README.md Log location updated. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md * Update README.md Fixed log location. * Update README.md Fixed log location. * Update README.md Fixed log location. * Added README.md Added README.md * New Custom Attributes New Custom Attributes * Updated folder name. * - Added uninstallation scripts for Microsoft Teams classic and Citrix Workspace - Updates readme-file for Teams and Citrix Workspace - Added new custom profiles for Microsoft 365 Apps and Microsoft Intune Agent * Update README.md Fixed typo. * Add files via upload * Fixed few sentences from the script and the readme -file. * Fixed some sentences from the script and readme -file. * Fixed some sentences from the script and readme -file. * Fixed some typos. * Update DisableCreationOfDS_StoreFilesOnNetworkSharesAndRemovableDrives.zsh Bug fixed. * Fixed typo on description. * New file added.
1 parent a456f48 commit e225548

File tree

45 files changed

+901
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+901
-87
lines changed

macOS/Apps/Citrix Workspace/readme.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
# Citrix Desktop for Mac Installation Script
1+
# Citrix Workspace
2+
Here are some example scripts showing how to use [Intune Shell Scripting](https://docs.microsoft.com/en-us/mem/intune/apps/macos-shell-scripts) to install or uninstall an application. In this folder, we provide some scripts for Citrix Workspace.
23

3-
This script is an example showing how to use [Intune Shell Scripting](https://docs.microsoft.com/en-us/mem/intune/apps/macos-shell-scripts) to install an application. In this instance the script downloads the Citrix Desktop files, uncompresses them and installs into the /Applications directory.
4+
## Install Citrix Workspace (installCitrixWorkspace.sh)
45

5-
## Scenario
6-
7-
This scripts intended usage scenario is to deploy the gitHub Desktop app to Mac devices that need to use it.
8-
9-
10-
## Script Settings
6+
This script installs Citrix Workspace.
7+
8+
### Script Settings (installCitrixWorkspace.sh)
119

1210
- Run script as signed-in user : No
1311
- Hide script notifications on devices : Not configured
1412
- Script frequency : Not configured
1513
- Number of times to retry if script fails : 3
1614

17-
## Log File
15+
### Log File (installCitrixWorkspace.sh)
1816

19-
The log file will output to **/Library/Logs/Microsoft/IntuneScripts/installGitHubDesktop/GitHub Desktop.log** by default. Exit status is either 0 or 1. To gather this log with Intune remotely take a look at [Troubleshoot macOS shell script policies using log collection](https://docs.microsoft.com/en-us/mem/intune/apps/macos-shell-scripts#troubleshoot-macos-shell-script-policies-using-log-collection).
17+
The log file will output to **/Library/Logs/Microsoft/IntuneScripts/Citrix Workspace/Citrix Workspace.log** by default. Exit status is either 0 or 1. To gather this log with Intune remotely take a look at [Troubleshoot macOS shell script policies using log collection](https://docs.microsoft.com/en-us/mem/intune/apps/macos-shell-scripts#troubleshoot-macos-shell-script-policies-using-log-collection).
2018

2119
```
2220
##############################################################
@@ -46,4 +44,28 @@ Mon 28 Feb 2022 15:10:41 GMT | No instances of [/Applications/Citrix Workspace.a
4644
Mon 28 Feb 2022 15:10:41 GMT | Installing [Citrix Workspace]
4745
Mon 28 Feb 2022 15:10:41 GMT | Mounting Image
4846
Mon 28 Feb 2022 15:10:41 GMT | Starting installer for [/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.ig7jobi1/Citrix Workspace/Install Citrix Workspace.pkg]
47+
```
48+
49+
## Uninstall Citrix Workspace (uninstallCitrixWorkspace.zsh)
50+
51+
This script uninstalls Citrix Workspace.
52+
53+
### Script Settings (uninstallCitrixWorkspace.zsh)
54+
55+
- Run script as signed-in user : No
56+
- Hide script notifications on devices : Yes
57+
- Script frequency : Not configured (**Note:** If users have and uses admin rights on their day-to-day tasks, you should consider to run this more frequently such as "Every 1 day")
58+
- Number of times to retry if script fails : 3
59+
60+
### Log File (uninstallCitrixWorkspace.zsh)
61+
62+
The log file will output to **/Library/Logs/Microsoft/IntuneScripts/UninstallCitrixWorkspace/UninstallCitrixWorkspace.log** by default. Exit status is either 0 or 1. To gather this log with Intune remotely take a look at [Troubleshoot macOS shell script policies using log collection](https://docs.microsoft.com/en-us/mem/intune/apps/macos-shell-scripts#troubleshoot-macos-shell-script-policies-using-log-collection).
63+
64+
```
65+
##############################################################
66+
# Sun Sep 1 17:32:57 EEST 2024 | Starting running of script UninstallCitrixWorkspace
67+
############################################################
68+
69+
Sun Sep 1 17:32:57 EEST 2024 | Uninstalling Citrix Workspace...
70+
Sun Sep 1 17:34:04 EEST 2024 | Citrix Workspace has been uninstalled. Closing script...
4971
```
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/bin/zsh
2+
#set -x
3+
############################################################################################
4+
##
5+
## Script to uninstall Citrix Workspace
6+
##
7+
############################################################################################
8+
9+
## Copyright (c) 2024 Microsoft Corp. All rights reserved.
10+
## Scripts are not supported under any Microsoft standard support program or service. The scripts are provided AS IS without warranty of any kind.
11+
## Microsoft disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a
12+
## particular purpose. The entire risk arising out of the use or performance of the scripts and documentation remains with you. In no event shall
13+
## Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever
14+
## (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary
15+
## loss) arising out of the use of or inability to use the sample scripts or documentation, even if Microsoft has been advised of the possibility
16+
## of such damages.
17+
## Feedback: [email protected]
18+
19+
# Define variables
20+
appname="UninstallCitrixWorkspace" # The name of our uninstallation script
21+
logandmetadir="/Library/Logs/Microsoft/IntuneScripts/$appname" # The location of our logs and last updated data
22+
uninstall="/Library/Application Support/Citrix Receiver/Uninstall Citrix Workspace.app/Contents/MacOS/Uninstall Citrix Workspace" # Location of the executable file that uninstalls Citrix Workspace
23+
uninstallationdir="/Library/Application Support/Citrix Receiver" # Uninstallation directory of the Citrix Workspace
24+
app="/Applications/Citrix Workspace.app" # Location of Citrix Workspace
25+
log="$logandmetadir/$appname.log" # The location of the script log file
26+
27+
# Check if the log directory has been created
28+
if [ -d $logandmetadir ]; then
29+
# Already created
30+
echo "$(date) | Log directory already exists - $logandmetadir"
31+
else
32+
# Creating Metadirectory
33+
echo "$(date) | creating log directory - $logandmetadir"
34+
mkdir -p $logandmetadir
35+
fi
36+
37+
# Uninstall Citrix Workspace
38+
UninstallCitrixWorkspace() {
39+
echo "$(date) | Uninstalling Citrix Workspace..."
40+
$uninstall --nogui
41+
sleep 60
42+
rm -rf $uninstallationdir
43+
sleep 2
44+
echo "$(date) | Citrix Workspace has been uninstalled. Closing script..."
45+
exit 0
46+
}
47+
48+
# Inform if there is no Citrix Workspace installations
49+
NoCitrixWorkspaceInstallations() {
50+
echo "$(date) | There is no Citrix Workspace installation on this device. Closing script..."
51+
exit 0
52+
}
53+
54+
# Start logging
55+
exec &> >(tee -a "$log")
56+
57+
# Begin Script Body
58+
echo ""
59+
echo "##############################################################"
60+
echo "# $(date) | Starting running of script $appname"
61+
echo "############################################################"
62+
echo ""
63+
64+
# Run function
65+
if test -d $app
66+
then UninstallCitrixWorkspace
67+
else NoCitrixWorkspaceInstallations
68+
fi

macOS/Apps/Teams/readme.md

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
# Microsoft Teams Installation Script
1+
# Microsoft Teams
22

3-
This script is an example to show how to use [Intune Shell Scripting](https://docs.microsoft.com/en-us/mem/intune/apps/macos-shell-scripts) to install applications. In this case the script will download the Teams pkg file from the Microsoft download servers and then install it onto the Mac.
3+
Here are some example scripts showing how to use [Intune Shell Scripting](https://docs.microsoft.com/en-us/mem/intune/apps/macos-shell-scripts) to install or uninstall an application. In this folder, we provide some scripts for Citrix Workspace.
44

5-
There are two versions of the Teams Clients and you'll find a sample script for each.
5+
## Install Microsoft Teams (installTeamsClassic.zsh, installTeamsV2.zsh)
66

7-
- Microsoft Teams Classic
8-
- Microsoft Teams (for work and scool)
7+
These scripts installs Microsoft Teams. There are two versions of the Teams Clients and you'll find a sample script for each.
98

10-
More information about [The new Microsoft Teams desktop client](https://learn.microsoft.com/en-us/microsoftteams/new-teams-desktop-admin).
11-
12-
## Audio Driver
9+
- Microsoft Teams classic
10+
- Microsoft Teams
1311

14-
To share system audio in a teams call, you also need to install the Teams Audio Driver. This is included with the standard package but on older packages didn't used to be installed since it interrupted any audio that was playing. Both of the sample packages shared here will force the Audio Driver to automatically install to prevent standard desktop users not being able to install it later.
12+
More information about [The new Microsoft Teams desktop client](https://learn.microsoft.com/en-us/microsoftteams/new-teams-desktop-admin).
1513

16-
## Scenario
14+
### Audio Driver for Microsoft Teams classic
1715

18-
This script is intended for customers who need to deploy Teams via the Intune Scripting Agent.
16+
To share system audio in a teams classic call, you also need to install the Teams Audio Driver. This is included with the standard package but on older packages didn't used to be installed since it interrupted any audio that was playing. Both of the sample packages shared here will force the Audio Driver to automatically install to prevent standard desktop users not being able to install it later.
1917

20-
## Quick Run
18+
### Quick Run
2119

2220
Classic
2321
```
@@ -30,14 +28,14 @@ sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/microsoft/shel
3028
```
3129

3230

33-
## Script Settings
31+
### Script Settings (installTeamsClassic.zsh, installTeamsV2.zsh)
3432

3533
- Run script as signed-in user : No
3634
- Hide script notifications on devices : Not configured
3735
- Script frequency : Not configured
3836
- Number of times to retry if script fails : 3
3937

40-
## Log File
38+
### Log File (installTeamsClassic.zsh, installTeamsV2.zsh)
4139

4240
The log file will output to ***/Library/Logs/Microsoft/IntuneScripts/Microsoft Teams*** by default. Exit status is either 0 or 1. To gather this log with Intune remotely take a look at [Troubleshoot macOS shell script policies using log collection](https://docs.microsoft.com/en-us/mem/intune/apps/macos-shell-scripts#troubleshoot-macos-shell-script-policies-using-log-collection)
4341

@@ -74,3 +72,33 @@ Fri 10 Nov 2023 05:12:12 PST | Cleaning Up
7472
Fri 10 Nov 2023 05:12:12 PST | Application [Microsoft Teams] succesfully installed
7573
Fri 10 Nov 2023 05:12:12 PST | Writing last modifieddate [Wed, 08 Nov 2023 16:08:39 GMT] to [/Library/Logs/Microsoft/IntuneScripts/Microsoft Teams/Microsoft Teams.meta]
7674
```
75+
76+
## Uninstall Microsoft Teams classic (uninstallTeamsClassic.zsh)
77+
78+
This script uninstalls Microsoft Teams classic.
79+
80+
### Quick Run
81+
82+
```
83+
sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/microsoft/shell-intune-samples/master/macOS/Apps/Teams/uninstallTeamsClassic.zsh)"
84+
```
85+
86+
### Script Settings (uninstallTeamsClassic.zsh)
87+
88+
- Run script as signed-in user : No
89+
- Hide script notifications on devices : Yes
90+
- Script frequency : Not configured (**Note:** If users have and uses admin rights on their day-to-day tasks, you should consider to run this more frequently such as "Every 1 day")
91+
- Number of times to retry if script fails : 3
92+
93+
### Log File (uninstallMicrosoftTeamsClassic.zsh)
94+
95+
The log file will output to ***/Library/Logs/Microsoft/IntuneScripts/UninstallMicrosoftTeamsClassic/UninstallMicrosoftTeamsClassic.log*** by default. Exit status is either 0 or 1. To gather this log with Intune remotely take a look at [Troubleshoot macOS shell script policies using log collection](https://docs.microsoft.com/en-us/mem/intune/apps/macos-shell-scripts#troubleshoot-macos-shell-script-policies-using-log-collection)
96+
97+
```
98+
##############################################################
99+
# Sun Sep 1 17:58:17 EEST 2024 | Starting running of script UninstallMicrosoftTeamsClassic
100+
############################################################
101+
102+
Sun Sep 1 17:58:17 EEST 2024 | Uninstalling Microsoft Teams classic...
103+
Sun Sep 1 17:58:19 EEST 2024 | Microsoft Teams classic has been uninstalled. Closing script...
104+
```
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/bin/zsh
2+
#set -x
3+
############################################################################################
4+
##
5+
## Script to uninstall Microsoft Teams classic
6+
##
7+
############################################################################################
8+
9+
## Copyright (c) 2024 Microsoft Corp. All rights reserved.
10+
## Scripts are not supported under any Microsoft standard support program or service. The scripts are provided AS IS without warranty of any kind.
11+
## Microsoft disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a
12+
## particular purpose. The entire risk arising out of the use or performance of the scripts and documentation remains with you. In no event shall
13+
## Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever
14+
## (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary
15+
## loss) arising out of the use of or inability to use the sample scripts or documentation, even if Microsoft has been advised of the possibility
16+
## of such damages.
17+
## Feedback: [email protected]
18+
19+
# Define variables
20+
appname="UninstallMicrosoftTeamsClassic" # The name of our uninstallation script
21+
logandmetadir="/Library/Logs/Microsoft/IntuneScripts/$appname" # The location of our logs and last updated data
22+
app="/Applications/Microsoft Teams classic.app" # Location of Microsoft Teams classic
23+
log="$logandmetadir/$appname.log" # The location of the script log file
24+
25+
# Check if the log directory has been created
26+
if [ -d $logandmetadir ]; then
27+
# Already created
28+
echo "$(date) | Log directory already exists - $logandmetadir"
29+
else
30+
# Creating Metadirectory
31+
echo "$(date) | creating log directory - $logandmetadir"
32+
mkdir -p $logandmetadir
33+
fi
34+
35+
# Uninstall Microsoft Teams classic
36+
UninstallMicrosoftTeamsClassic() {
37+
echo "$(date) | Uninstalling Microsoft Teams classic..."
38+
rm -rf $app
39+
sleep 2
40+
echo "$(date) | Microsoft Teams classic has been uninstalled. Closing script..."
41+
exit 0
42+
}
43+
44+
# Inform if there is no Microsoft Teams classic installation
45+
NoMicrosoftTeamsClassicInstallations() {
46+
echo "$(date) | There is no Microsoft Teams classic installation on this device. Closing script..."
47+
exit 0
48+
}
49+
50+
# Start logging
51+
exec &> >(tee -a "$log")
52+
53+
# Begin Script Body
54+
echo ""
55+
echo "##############################################################"
56+
echo "# $(date) | Starting running of script $appname"
57+
echo "############################################################"
58+
echo ""
59+
60+
# Run function
61+
if test -d $app
62+
then UninstallMicrosoftTeamsClassic
63+
else NoMicrosoftTeamsClassicInstallations
64+
fi

macOS/Apps/think-cell/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# think-cell Corporate Default Style File Installer
2+
3+
This script is an example to show how to use [Intune Shell Scripting](https://docs.microsoft.com/en-us/mem/intune/apps/macos-shell-scripts) to install applications. In this case the script will download the think-cell corporate default style file from your Azure Blob Storage or download server and then install it onto the Mac.
4+
5+
## Things you need to do
6+
7+
1. Modify line 20 with the URL to the storage location you are using for your corporate default style file (Azure Blob Storage is handy for this).
8+
2. Modify line 22 with the name of your corporate default style file.
9+
10+
## Script Settings
11+
12+
- Run script as signed-in user : No
13+
- Hide script notifications on devices : Yes
14+
- Script frequency : Not configured
15+
- Number of times to retry if script fails : 3
16+
17+
## Log File
18+
19+
The log file will output to ***/Library/Logs/Microsoft/IntuneScripts/think-cellCorporateDefaultStyleFileInstaller/think-cellCorporateDefaultStyleFileInstaller.log*** by default. Exit status is either 0 or 1. To gather this log with Intune remotely take a look at [Troubleshoot macOS shell script policies using log collection](https://docs.microsoft.com/en-us/mem/intune/apps/macos-shell-scripts#troubleshoot-macos-shell-script-policies-using-log-collection)
20+
21+
```
22+
23+
##############################################################
24+
# Tue Sep 3 15:32:45 EEST 2024 | Starting running of script think-cellCorporateDefaultStyleFileInstaller
25+
############################################################
26+
27+
Tue Sep 3 15:32:45 EEST 2024 | think-cell is installed. Let's proceed...
28+
Tue Sep 3 15:32:47 EEST 2024 | Corporate default style file to think-cell has not be installed. Let's proceed...
29+
Tue Sep 3 15:33:47 EEST 2024 | Corporate default style file to think-cell has been installed sucessfully. Closing script...
30+
```

0 commit comments

Comments
 (0)