Skip to content

Commit d26de1f

Browse files
2 parents 395be16 + e225548 commit d26de1f

File tree

45 files changed

+902
-88
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

+902
-88
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)