Skip to content

Adobe Acrobat Uninstallation Script and Adobe Acrobat Policy Enforcers (Machine & User Level). #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 252 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
437a9aa
Added "Check Gatekeeper Status"
janparttimaa Nov 13, 2023
8806b1f
Custom Attributes for browser version cheks
janparttimaa Nov 13, 2023
b39bce9
Update installQualys.zsh
janparttimaa Nov 13, 2023
c1a18c0
Update qualysSubscriptionInstaller.zsh
janparttimaa Nov 13, 2023
18e0e29
Update fetchMicrosoftEdgeVersion.sh
janparttimaa Nov 13, 2023
3df44cb
Update fetchFirefoxVersion.sh
janparttimaa Nov 13, 2023
9357838
Update fetchGoogleChromeVersion.sh
janparttimaa Nov 13, 2023
28a0a50
Update CheckQualysSubscriptionStatus.zsh
janparttimaa Nov 13, 2023
14bfca2
Merge branch 'microsoft:master' into master
janparttimaa Nov 17, 2023
c736a56
Added Illumio VEN
janparttimaa Nov 17, 2023
f4d9c8e
Added new custom profile
janparttimaa Nov 17, 2023
2fed262
Added new files regarding to GlobalProtect
janparttimaa Nov 17, 2023
4966bdd
Added new policy
janparttimaa Nov 17, 2023
8b607db
Added Gatekeeper Enabler
janparttimaa Nov 17, 2023
fc7ad68
Update README.md
janparttimaa Nov 17, 2023
b6b2bcd
Update README.md
janparttimaa Nov 17, 2023
42c23cf
Update README.md
janparttimaa Nov 18, 2023
529d462
Add files via upload
janparttimaa Nov 18, 2023
798a88a
Delete macOS/Custom Profiles/Microsoft OneDrive - Full Disk Access di…
janparttimaa Nov 18, 2023
15fa645
Delete macOS/Custom Profiles/Qualys - Full Disk Access directory
janparttimaa Nov 18, 2023
443609b
Add files via upload
janparttimaa Nov 18, 2023
f8a1ef7
Update README.md
janparttimaa Nov 18, 2023
e491bb8
Merge branch 'microsoft:master' into master
janparttimaa Dec 23, 2023
c622a11
Added new custom profiles of Terminal
janparttimaa Dec 29, 2023
9dea2db
Update README.md
janparttimaa Dec 29, 2023
a169d9b
Update readme.md
janparttimaa Dec 31, 2023
c29c1c4
Add files via upload
janparttimaa Dec 31, 2023
4619176
Update readme.md
janparttimaa Dec 31, 2023
438d0c0
Update DeviceRename2.sh
janparttimaa Dec 31, 2023
cc6256c
Update Terminal - Full Disk Access.mobileconfig
janparttimaa Jan 3, 2024
d0631e4
Update Terminal - Full Disk Access.mobileconfig
janparttimaa Jan 3, 2024
ba9009e
Update README.md
janparttimaa Jan 12, 2024
8b624cd
Update README.md
janparttimaa Jan 12, 2024
9b7468f
Enable "Show all filename extensions" -Setting from Finder
janparttimaa Jan 12, 2024
45dc21a
Delete Guest Home Folder
janparttimaa Jan 12, 2024
bb1bb2a
Enable Apple Mobile File Integrity (AMFI)
janparttimaa Jan 12, 2024
a05632d
Ensure an Administrator Account Cannot Login to Another User's Active…
janparttimaa Jan 12, 2024
9cd5209
Disable HTTP Server
janparttimaa Jan 12, 2024
10a1ca7
Disable NFS Server
janparttimaa Jan 12, 2024
7bf1176
Disable Bluetooth Sharing
janparttimaa Jan 12, 2024
784c6b4
Disable DVD or CD Sharing
janparttimaa Jan 12, 2024
57cac08
Require Administrator password to access System-Wide Preferences
janparttimaa Jan 12, 2024
6181dc2
Disable Guest Access to Shared Folders
janparttimaa Jan 12, 2024
0c820ba
Disable Power Nap for Intel Macs
janparttimaa Jan 12, 2024
8c8a1e3
Disable Internet Sharing
janparttimaa Jan 12, 2024
b476cc6
Disable Remote Management
janparttimaa Jan 12, 2024
68fb334
Disable Printer Sharing
janparttimaa Jan 12, 2024
f7b4400
Disable Remote Apple Events
janparttimaa Jan 12, 2024
cbae97b
Disable Remote Login
janparttimaa Jan 12, 2024
93eeec8
Disable Media Sharing
janparttimaa Jan 12, 2024
b85cd69
Disable "Show Password Hints"
janparttimaa Jan 12, 2024
f36492d
Disable File Sharing
janparttimaa Jan 12, 2024
5d9064a
Show Wi-Fi Status Permanently in Menu Bar
janparttimaa Jan 12, 2024
02d798a
Access to Secure User's Home Folders
janparttimaa Jan 12, 2024
8f80ef4
Access to Audit Recods is Controlled
janparttimaa Jan 12, 2024
0003863
Update README.md
janparttimaa Jan 12, 2024
baf560c
Merge pull request #2 from janparttimaa/janparttimaa-patch-2
janparttimaa Jan 12, 2024
47021d7
Update README.md
janparttimaa Jan 12, 2024
ab02c30
Update README.md
janparttimaa Jan 12, 2024
6f0f89a
Update README.md
janparttimaa Jan 16, 2024
705746a
Update README.md
janparttimaa Jan 16, 2024
7b78156
Update README.md
janparttimaa Jan 16, 2024
e1c83f7
Update README.md
janparttimaa Jan 16, 2024
5d1552d
Update README.md
janparttimaa Jan 16, 2024
0a33ef8
Update README.md
janparttimaa Jan 16, 2024
8625e18
Update README.md
janparttimaa Jan 16, 2024
dfdf11f
Update README.md
janparttimaa Jan 16, 2024
5507878
Update README.md
janparttimaa Jan 16, 2024
4526e33
Update README.md
janparttimaa Jan 16, 2024
a7e1100
Update README.md
janparttimaa Jan 16, 2024
6cbc755
Update README.md
janparttimaa Jan 16, 2024
e625d4c
Update README.md
janparttimaa Jan 16, 2024
cf95430
Update README.md
janparttimaa Jan 16, 2024
faae1a4
Update README.md
janparttimaa Jan 16, 2024
3a7cb0e
Update README.md
janparttimaa Jan 16, 2024
a4e3e28
Merge branch 'microsoft:master' into master
janparttimaa Jan 16, 2024
e31090f
Moved folder to correct sub-folder.
janparttimaa Jan 16, 2024
7570eea
Merge branch 'microsoft:master' into master
janparttimaa Jan 22, 2024
6d56e06
Add files via upload
janparttimaa Jan 22, 2024
29752a2
Update illumioVENRegistrationInstaller.sh
janparttimaa Jan 22, 2024
12bc249
Update illumioVENRegistrationInstaller.sh
janparttimaa Jan 22, 2024
23aa45f
Update illumioVENRegistrationInstaller.sh
janparttimaa Jan 22, 2024
921f878
Add files via upload
janparttimaa Feb 23, 2024
d89593f
Merge branch 'microsoft:master' into master
janparttimaa Mar 18, 2024
c5247ef
Merge branch 'microsoft:master' into master
janparttimaa Apr 3, 2024
12f1824
New Custom Attribute: Fetch Illumio VEN Version
janparttimaa Apr 3, 2024
241c35c
Merge branch 'microsoft:master' into master
janparttimaa May 15, 2024
4dec2fb
Merge branch 'microsoft:master' into master
janparttimaa Jul 2, 2024
97cbecb
Merge branch 'microsoft:master' into master
janparttimaa Jul 20, 2024
c936493
Merge branch 'microsoft:master' into master
janparttimaa Aug 2, 2024
b5c6d11
Merge branch 'microsoft:master' into master
janparttimaa Aug 4, 2024
56add64
Merge branch 'microsoft:master' into master
janparttimaa Aug 30, 2024
1cea9e4
Update README.md
janparttimaa Sep 1, 2024
0be4514
Update DisableBluetoothSharing.zsh
janparttimaa Sep 1, 2024
a3ae099
Update ShowAllFilenameExtensions.zsh
janparttimaa Sep 1, 2024
cd8d67a
Update EnableOneDriveFinderSync.sh
janparttimaa Sep 1, 2024
f91cb82
Update README.md
janparttimaa Sep 1, 2024
7b35a5e
Update README.md
janparttimaa Sep 1, 2024
a137aaa
Update README.md
janparttimaa Sep 1, 2024
bab6430
Update README.md
janparttimaa Sep 1, 2024
ddadaa4
Update README.md
janparttimaa Sep 1, 2024
dd1b1ef
Update README.md
janparttimaa Sep 1, 2024
ed28ac0
Update README.md
janparttimaa Sep 1, 2024
1189d51
Update README.md
janparttimaa Sep 1, 2024
4b75236
Update README.md
janparttimaa Sep 1, 2024
03a637a
Update README.md
janparttimaa Sep 1, 2024
ccfa8dd
Update README.md
janparttimaa Sep 1, 2024
3f1c604
Update README.md
janparttimaa Sep 1, 2024
72ee796
Update README.md
janparttimaa Sep 1, 2024
5c652aa
Update README.md
janparttimaa Sep 1, 2024
8c7efdc
Update README.md
janparttimaa Sep 1, 2024
c1449ae
Update README.md
janparttimaa Sep 1, 2024
128de9a
Update README.md
janparttimaa Sep 1, 2024
5d43257
Update README.md
janparttimaa Sep 1, 2024
5ce6a4a
Update README.md
janparttimaa Sep 1, 2024
be1cb2c
Update README.md
janparttimaa Sep 1, 2024
5fd1fd2
Update README.md
janparttimaa Sep 1, 2024
3bc3048
Update README.md
janparttimaa Sep 1, 2024
b1a9eb9
Update README.md
janparttimaa Sep 1, 2024
53d00ba
Update README.md
janparttimaa Sep 1, 2024
fac919e
Update README.md
janparttimaa Sep 1, 2024
4974250
Added README.md
janparttimaa Sep 1, 2024
7e83ef9
New Custom Attributes
janparttimaa Sep 1, 2024
f84aa6d
Updated folder name.
janparttimaa Sep 1, 2024
9d58b69
- Added uninstallation scripts for Microsoft Teams classic and Citrix…
janparttimaa Sep 1, 2024
0bcb411
Update README.md
janparttimaa Sep 1, 2024
58644ef
Add files via upload
janparttimaa Sep 15, 2024
562d3a7
Fixed few sentences from the script and the readme -file.
janparttimaa Sep 15, 2024
4db9863
Fixed some sentences from the script and readme -file.
janparttimaa Sep 15, 2024
5f499da
Fixed some sentences from the script and readme -file.
janparttimaa Sep 15, 2024
ae01a59
Fixed some typos.
janparttimaa Sep 15, 2024
433b7ea
Update DisableCreationOfDS_StoreFilesOnNetworkSharesAndRemovableDrive…
janparttimaa Sep 18, 2024
bba5d66
Fixed typo on description.
janparttimaa Oct 5, 2024
d9f5652
Merge branch 'master' of https://github.com/janparttimaa/shell-intune…
janparttimaa Oct 5, 2024
b01c9ac
New file added.
janparttimaa Oct 5, 2024
e893315
Merge branch 'microsoft:master' into master
janparttimaa Oct 31, 2024
d92b780
Merge branch 'microsoft:master' into master
janparttimaa Jan 10, 2025
49bdce2
Add files via upload
janparttimaa Jan 10, 2025
4a7061a
Merge branch 'microsoft:master' into master
janparttimaa Feb 3, 2025
d6cd28f
Add files via upload
janparttimaa Feb 3, 2025
8388336
Add files via upload
janparttimaa Feb 3, 2025
8218a9e
Add files via upload
janparttimaa Feb 10, 2025
5ad3e6f
Merge branch 'microsoft:master' into master
janparttimaa Feb 10, 2025
51fb380
Add files via upload
janparttimaa Feb 10, 2025
a230261
Add files via upload
janparttimaa Feb 10, 2025
68acb2d
Add files via upload
janparttimaa Feb 10, 2025
a8e0401
Add files via upload
janparttimaa Feb 10, 2025
4664283
Add files via upload
janparttimaa Feb 10, 2025
60958b3
Add files via upload
janparttimaa Feb 10, 2025
c911544
Update FirewallBlockPortNumbers.zsh
janparttimaa Feb 10, 2025
3056fb1
Update FirewallBlockPortNumbers.zsh
janparttimaa Feb 10, 2025
bddc0bb
Add files via upload
janparttimaa Feb 13, 2025
436ff6b
Update Google Chrome - Configure extension installation allow list.mo…
janparttimaa Feb 15, 2025
a9365bb
Add files via upload
janparttimaa Feb 15, 2025
cac7088
Add files via upload
janparttimaa Feb 15, 2025
ccd8a63
Merge branch 'microsoft:master' into master
janparttimaa Feb 15, 2025
e62c567
Add files via upload
janparttimaa Feb 15, 2025
f216bb3
Add files via upload
janparttimaa Feb 15, 2025
129ddf4
Merge branch 'microsoft:master' into master
janparttimaa Feb 17, 2025
9ff9216
New changes.
janparttimaa Feb 17, 2025
bcbc627
New changes.
janparttimaa Feb 17, 2025
b9554a7
Merge branch 'master' of https://github.com/janparttimaa/shell-intune…
janparttimaa Feb 17, 2025
9b10b25
Update Microsoft Edge - Allow specific extensions to be installed.mob…
janparttimaa Feb 19, 2025
c6ad3c1
Add files via upload
janparttimaa Feb 19, 2025
67ed16a
Update Microsoft Edge - Control which extensions are installed silent…
janparttimaa Feb 19, 2025
278fd74
Add files via upload
janparttimaa Feb 19, 2025
66178c9
Updates.
janparttimaa Feb 21, 2025
a5549ec
Updates.
janparttimaa Feb 21, 2025
8503491
Merge branch 'microsoft:master' into master
janparttimaa Feb 21, 2025
99cb0a0
Update README.md
janparttimaa Feb 21, 2025
3191093
New custom attrubute added.
janparttimaa Feb 25, 2025
2869bf0
Merge branch 'master' of https://github.com/janparttimaa/shell-intune…
janparttimaa Feb 25, 2025
c26a27e
Add files via upload
janparttimaa Feb 25, 2025
b46abce
Commit new file.
janparttimaa Feb 27, 2025
2615f39
Merge branch 'master' of https://github.com/janparttimaa/shell-intune…
janparttimaa Feb 27, 2025
1ecf12d
Commit change
janparttimaa Feb 27, 2025
82193d2
Commit change.
janparttimaa Feb 27, 2025
8929869
Commit chnage.
janparttimaa Feb 27, 2025
bcf70ee
Commit changes.
janparttimaa Feb 27, 2025
73fbfe4
Commit change.
janparttimaa Feb 27, 2025
18961a8
Commit.
janparttimaa Feb 27, 2025
d694ea4
Commit
janparttimaa Feb 27, 2025
8de7e9e
Commit.
janparttimaa Feb 27, 2025
fce819f
Commit.
janparttimaa Feb 27, 2025
cf5b05f
Commit.
janparttimaa Feb 27, 2025
45c6444
Commit new changes.
janparttimaa Feb 27, 2025
c40a926
Merge branch 'microsoft:master' into master
janparttimaa Feb 27, 2025
87b546f
Commit new files and changes.
janparttimaa Feb 27, 2025
c967cd5
Commit new changes.
janparttimaa Feb 27, 2025
9724773
Commit new changes.
janparttimaa Feb 27, 2025
0dfc8b9
Update FirewallBlockPortNumbers.zsh
janparttimaa Mar 3, 2025
0c152cf
Update FirewallBlockPortNumbers.zsh
janparttimaa Mar 3, 2025
dd2b27c
Add files via upload
janparttimaa Mar 4, 2025
8d65aa7
Added uninstallation scripts of Figma.
janparttimaa Mar 8, 2025
e6aab49
Merge branch 'microsoft:master' into master
janparttimaa Mar 8, 2025
63f07af
Update README.md
janparttimaa Mar 8, 2025
11be702
Update README.md
janparttimaa Mar 8, 2025
e451150
Update README.md
janparttimaa Mar 8, 2025
dad8a7c
Update README.md
janparttimaa Mar 8, 2025
f8284fb
New changes.
janparttimaa Mar 8, 2025
bd344db
New Changes.
janparttimaa Mar 8, 2025
361ef90
New changes.
janparttimaa Mar 8, 2025
4c10897
Updated readme.
janparttimaa Mar 8, 2025
ca4c019
Updated readme.
janparttimaa Mar 8, 2025
69c322e
Updated readme.
janparttimaa Mar 8, 2025
3006d59
Updated readme.
janparttimaa Mar 8, 2025
c122f1f
Update README.md
janparttimaa Mar 8, 2025
175e7d5
Update README.md
janparttimaa Mar 8, 2025
c05a911
Update README.md
janparttimaa Mar 8, 2025
6988e0d
Update README.md
janparttimaa Mar 8, 2025
895e440
New Changes.
janparttimaa Mar 8, 2025
a091e28
Merge branch 'master' of https://github.com/janparttimaa/shell-intune…
janparttimaa Mar 8, 2025
8779a24
New changes.
janparttimaa Mar 8, 2025
c284f7a
New changes.
janparttimaa Mar 8, 2025
6ddd418
New changes.
janparttimaa Mar 8, 2025
3d35a75
New changes.
janparttimaa Mar 8, 2025
8e839a2
Overall update for Office for Mac which is now Microsoft 365 Apps for…
janparttimaa Mar 8, 2025
63545e8
Updated version of Microsoft 365 Apps for Mac Installation script.
janparttimaa Mar 8, 2025
90c2836
Updated readme.
janparttimaa Mar 8, 2025
9c3c872
Merge branch 'microsoft:master' into master
janparttimaa Mar 11, 2025
a801539
Update README.md
janparttimaa Mar 18, 2025
42ec8e5
Fixed typo from README.md
janparttimaa Mar 24, 2025
9432d34
Added new custom attribute to check installed .NET version.
janparttimaa Mar 28, 2025
d66f3fb
Merge branch 'master' of https://github.com/janparttimaa/shell-intune…
janparttimaa Mar 28, 2025
5fe7bfe
Update setOutlookasDefaultMailClient.sh
janparttimaa Apr 9, 2025
9ccfaf1
Merge branch 'microsoft:master' into master
janparttimaa Apr 9, 2025
c63fb2a
New changes.
janparttimaa May 18, 2025
d47d816
Merge branch 'microsoft:master' into master
janparttimaa May 18, 2025
782eadb
Update AdobeAcrobatPolicyEnforcer.zsh
janparttimaa May 18, 2025
bc163d4
Rename AdobeCombinedPolicyEnforcer.zsh to AdobeAcrobatCombinedPolicyE…
janparttimaa May 18, 2025
5da5a3e
New changes.
janparttimaa May 20, 2025
25c7e35
Add files via upload
janparttimaa May 21, 2025
71a217e
Add files via upload
janparttimaa May 21, 2025
7b5b243
New changes.
janparttimaa May 21, 2025
a56b57a
Merge branch 'master' of https://github.com/janparttimaa/shell-intune…
janparttimaa May 21, 2025
1f19968
Merge branch 'microsoft:master' into master
janparttimaa May 21, 2025
e140742
New changes.
janparttimaa May 21, 2025
14fa443
Merge branch 'master' of https://github.com/janparttimaa/shell-intune…
janparttimaa May 21, 2025
14aa2f0
New changes.
janparttimaa May 31, 2025
eeea397
New changes.
janparttimaa Jun 11, 2025
a7f3dfa
Add files via upload
janparttimaa Jun 14, 2025
0ecaed0
Update README.md
janparttimaa Jun 14, 2025
325bd25
Update README.md
janparttimaa Jun 14, 2025
ac5cc75
Update README.md
janparttimaa Jun 14, 2025
bd86deb
Update README.md
janparttimaa Jun 14, 2025
bc8b72b
Delete macOS/Config/iManage Work Desktop directory
janparttimaa Jun 14, 2025
ea01a8b
New changes.
janparttimaa Jun 15, 2025
248ceed
Update README.md
janparttimaa Jun 19, 2025
2c3c4d0
New changes.
janparttimaa Jun 20, 2025
e4244cc
Merge branch 'master' of https://github.com/janparttimaa/shell-intune…
janparttimaa Jun 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# Adobe Acrobat Installation Script
# Adobe Acrobat & Adobe Acrobat Reader

In this folder we provide you few following script examples of Adobe Acrobat & Adobe Acrobat Reader:

| Type | File | Notes |
| -------- | ------- | ------- |
| Installation script | ```installAcrobatDC.sh```<br> or <br> ```installAcrobatDC.zsh``` | <ul><li>Installation script is provided either sh (Bourne Shell) script or zsh (Z Shell) script.<li> Check more information [here](#installation-script).</li></ul> |
| Uninstallation script | ```UninstallAdobeAcrobat.zsh``` | <ul><li> Suitable for separate uninstallation deployment via [script](https://learn.microsoft.com/en-us/intune/intune-service/apps/macos-shell-scripts) or as [pre-installation script](https://learn.microsoft.com/en-us/intune/intune-service/apps/macos-unmanaged-pkg) when installing company deployed Adobe Acrobat as PKG-package.<li>Check more information [here](#uninstallation-script).</li></ul> |

## Installation Script

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 Adobe Acrobat DC DMG file from the Adobe download servers and then install it onto the Mac.

## Script Settings
### Script Settings

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

## Log File
### Log File

The log file will output to ***/Library/Logs/Microsoft/IntuneScripts/Adobe Acrobat Reader DC/Adobe Acrobat Reader DC.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)

Expand Down Expand Up @@ -53,3 +62,40 @@ Wed 5 Jan 2022 17:28:33 GMT | Fixing up permissions
Wed 5 Jan 2022 17:28:34 GMT | Application [Adobe Acrobat Reader DC] succesfully installed
Wed 5 Jan 2022 17:28:34 GMT | Writing last modifieddate [Mon, 10 May 2021 07:25:20 GMT] to [/Library/Logs/Microsoft/IntuneScripts/Adobe Acrobat Reader DC/Adobe Acrobat Reader DC.meta]
```
## Uninstallation Script

> [!NOTE]
> This uninstallation script is suitable for separate uninstallation deployment via [script](https://learn.microsoft.com/en-us/intune/intune-service/apps/macos-shell-scripts) or as [pre-installation script](https://learn.microsoft.com/en-us/intune/intune-service/apps/macos-unmanaged-pkg) when installing company deployed Adobe Acrobat as PKG-package.

This uninstallation script uninstalls following Adobe Acrobat versions from the Mac-device if one of these versions are installed:

- Adobe Acrobat Reader 2020.
- Adobe Acrobat 2020.
- Adobe Acrobat Classic / Adobe Acrobat Reader Classic.
- Adobe Acrobat DC / Adobe Acrobat Reader DC.

### Script Settings

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

### Log File

The log file will output to ***/Library/Logs/Microsoft/IntuneScripts/UninstallAdobeAcrobatAndAdobeAcrobatReader/UninstallAdobeAcrobatAndAdobeAcrobatReader.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)
```
Fri Jun 20 19:15:10 EEST 2025 | Creating log directory - /Library/Logs/Microsoft/IntuneScripts/UninstallAdobeAcrobatAndAdobeAcrobatReader

##############################################################
# Fri Jun 20 19:15:10 EEST 2025 | Starting running of script UninstallAdobeAcrobatAndAdobeAcrobatReader
############################################################

Fri Jun 20 19:15:10 EEST 2025 | Adobe Acrobat Reader 2020 is not installed. Let's proceed...
Fri Jun 20 19:15:10 EEST 2025 | Adobe Acrobat / Adobe Acrobat Reader 2020 is not installed. Let's proceed...
Fri Jun 20 19:15:10 EEST 2025 | Adobe Acrobat / Adobe Acrobat Reader Classic is not installed. Let's proceed...
Fri Jun 20 19:15:10 EEST 2025 | Adobe Acrobat / Adobe Acrobat Reader DC is installed. Making sure, that application is closed...
Fri Jun 20 19:15:21 EEST 2025 | Done. Uninstalling Adobe Acrobat / Adobe Acrobat Reader DC...
Fri Jun 20 19:15:53 EEST 2025 | Adobe Acrobat / Adobe Acrobat Reader DC successfully uninstalled. You can now install it back if needed. Closing script...

```
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
#!/bin/zsh
#set -x
############################################################################################
##
## Script to uninstall Adobe Acrobat / Adobe Acrobat Reader 2020, Classic and DC
##
############################################################################################

## Copyright (c) 2025 Microsoft Corp. All rights reserved.
## Scripts are not supported under any Microsoft standard support program or service. The scripts are provided AS IS without warranty of any kind.
## Microsoft disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a
## particular purpose. The entire risk arising out of the use or performance of the scripts and documentation remains with you. In no event shall
## Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever
## (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary
## 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
## of such damages.
## Feedback: neiljohn@microsoft.com

# Define variables
appname="UninstallAdobeAcrobatAndAdobeAcrobatReader" # The name of our file deployment script
logandmetadir="/Library/Logs/Microsoft/IntuneScripts/$appname" # The location of our logs and last updated data
acrobatreader2020installationpath="/Applications/Adobe Acrobat Reader 2020.app" # The first location where Adobe Acrobat Reader 2020 is installed
adobeacrobat2020installationpath="/Applications/Adobe Acrobat 2020/Adobe Acrobat.app" # The second location where Adobe Acrobat / Adobe Acrobat Reader 2020 is installed
adobeacrobatclassicinstallationpath="/Applications/Adobe Acrobat Classic/Adobe Acrobat.app" # The second location where Adobe Acrobat / Adobe Acrobat Reader Classic is installed
adobeacrobatdcinstallationpath="/Applications/Adobe Acrobat DC/Adobe Acrobat.app" # The location where Adobe Acrobat / Adobe Acrobat Reader DC is installed
log="$logandmetadir/$appname.log" # The location of the script log file
# The location of Acrobat Uninstaller for Adobe Acrobat / Adobe Acrobat Reader 2020
acrobat2020uninstaller="/Applications/Adobe Acrobat 2020/Adobe Acrobat.app/Contents/Helpers/Acrobat Uninstaller.app/Contents/Library/LaunchServices/com.adobe.Acrobat.RemoverTool"
# The location of Acrobat Uninstaller for Adobe Acrobat / Adobe Acrobat Reader Classic
acrobatclassicuninstaller="/Applications/Adobe Acrobat Classic/Adobe Acrobat.app/Contents/Helpers/Acrobat Uninstaller.app/Contents/Library/LaunchServices/com.adobe.Acrobat.RemoverTool"
# The location of Acrobat Uninstaller for Adobe Acrobat / Adobe Acrobat Reader DC
acrobatdcuninstaller="/Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/Helpers/Acrobat Uninstaller.app/Contents/Library/LaunchServices/com.adobe.Acrobat.RemoverTool"

# Check if the log directory has been created
if [ -d $logandmetadir ]; then
# Already created
echo "$(date) | Log directory already exists - $logandmetadir"
else
# Creating Metadirectory
echo "$(date) | Creating log directory - $logandmetadir"
mkdir -p $logandmetadir
fi

# Check if Adobe Acrobat Reader 2020 is already installed
CheckIfAcrobatReader2020IsInstalled() {
if [ -d $acrobatreader2020installationpath ]; then
# If Adobe Acrobat Reader 2020 is installed, inform this and uninstall the application
echo "$(date) | Adobe Acrobat Reader 2020 is installed. Making sure, that application is closed..."
osascript -e 'tell application "Adobe Acrobat Reader 2020" to quit' >/dev/null 2>&1
killall "AdobeReader" >/dev/null 2>&1
sleep 10
echo "$(date) | Done. Uninstalling Adobe Acrobat Reader 2020..."
rm -rf "$acrobatreader2020installationpath" >/dev/null 2>&1
sleep 30
if ! [ -e "$acrobatreader2020installationpath" ]; then
echo "$(date) | Adobe Acrobat Reader 2020 successfully uninstalled. Let's proceed..."
fi
else
# If Adobe Acrobat Reader 2020 is not installed, inform this and continue
echo "$(date) | Adobe Acrobat Reader 2020 is not installed. Let's proceed..."
fi
}

# Check if Adobe Acrobat / Adobe Acrobat Reader 2020 is already installed
CheckIfAcrobat2020IsInstalled() {
if [ -d $adobeacrobat2020installationpath ]; then
# If Adobe Acrobat / Adobe Acrobat Reader 2020 is installed, inform this and uninstall the application
echo "$(date) | Adobe Acrobat / Adobe Acrobat Reader 2020 is installed. Making sure, that application is closed..."
osascript -e 'tell application "Adobe Acrobat" to quit' >/dev/null 2>&1
killall "AdobeAcrobat" >/dev/null 2>&1
sleep 10
echo "$(date) | Done. Uninstalling Adobe Acrobat / Adobe Acrobat Reader 2020..."
$acrobat2020uninstaller Uninstall $adobeacrobat2020installationpath > /dev/null 2>&1
sleep 30
if ! [ -e "$adobeacrobat2020installationpath" ]; then
echo "$(date) | Adobe Acrobat / Adobe Acrobat Reader 2020 successfully uninstalled. Let's proceed..."
fi
else
# If Adobe Acrobat / Adobe Acrobat Reader 2020 is not installed, inform this and continue
echo "$(date) | Adobe Acrobat / Adobe Acrobat Reader 2020 is not installed. Let's proceed..."
fi
}

# Check if Adobe Acrobat / Adobe Acrobat Reader Classic is already installed
CheckIfAcrobatClassicIsInstalled() {
if [ -d $adobeacrobatclassicinstallationpath ]; then
# If Adobe Acrobat / Adobe Acrobat Reader Classic is installed, inform this and uninstall the application
echo "$(date) | Adobe Acrobat / Adobe Acrobat Reader Classic is installed. Making sure, that application is closed..."
osascript -e 'tell application "Adobe Acrobat" to quit' >/dev/null 2>&1
killall "AdobeAcrobat" >/dev/null 2>&1
sleep 10
echo "$(date) | Done. Uninstalling Adobe Acrobat / Adobe Acrobat Reader Classic..."
$acrobatclassicuninstaller Uninstall $adobeacrobatclassicinstallationpath > /dev/null 2>&1
sleep 30
if ! [ -e "$adobeacrobatclassicinstallationpath" ]; then
echo "$(date) | Adobe Acrobat / Adobe Acrobat Reader Classic successfully uninstalled. Let's proceed..."
fi
else
# If Adobe Acrobat / Adobe Acrobat Reader Classic is not installed, inform this and continue
echo "$(date) | Adobe Acrobat / Adobe Acrobat Reader Classic is not installed. Let's proceed..."
fi
}

# Check if Adobe Acrobat / Adobe Acrobat Reader DC is already installed
CheckIfAcrobatDCIsInstalled() {
if [ -d $adobeacrobatdcinstallationpath ]; then
# If Adobe Acrobat / Adobe Acrobat Reader DC is installed, inform this and uninstall the application
echo "$(date) | Adobe Acrobat / Adobe Acrobat Reader DC is installed. Making sure, that application is closed..."
osascript -e 'tell application "Adobe Acrobat" to quit' >/dev/null 2>&1
killall "AdobeAcrobat" >/dev/null 2>&1
sleep 10
echo "$(date) | Done. Uninstalling Adobe Acrobat / Adobe Acrobat Reader DC..."
$acrobatdcuninstaller Uninstall $adobeacrobatdcinstallationpath > /dev/null 2>&1
sleep 30
if ! [ -e "$adobeacrobatdcinstallationpath" ]; then
echo "$(date) | Adobe Acrobat / Adobe Acrobat Reader DC successfully uninstalled. You can now install it back if needed. Closing script..."
exit 0
fi
else
# If Adobe Acrobat / Adobe Acrobat Reader DC is not installed, inform this and continue
echo "$(date) | Adobe Acrobat / Adobe Acrobat Reader DC is not installed. You can now install it if needed. Closing script..."
exit 0
fi
}

# Start logging
exec &> >(tee -a "$log")

# Begin Script Body
echo ""
echo "##############################################################"
echo "# $(date) | Starting running of script $appname"
echo "############################################################"
echo ""

# Run function
CheckIfAcrobatReader2020IsInstalled
CheckIfAcrobat2020IsInstalled
CheckIfAcrobatClassicIsInstalled
CheckIfAcrobatDCIsInstalled
Loading