mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-23 14:23:38 +00:00
Microsoft Defender for macOS: move JAMF based uninstallation to the JAMF article
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 30 KiB |
@ -204,4 +204,33 @@ See [Logging installation issues](microsoft-defender-atp-mac-resources.md#loggin
|
|||||||
|
|
||||||
## Uninstallation
|
## Uninstallation
|
||||||
|
|
||||||
See [Uninstalling](microsoft-defender-atp-mac-resources.md#uninstalling) for details on how to remove Microsoft Defender ATP for Mac from client devices.
|
This method is based on the script described in [Uninstalling](microsoft-defender-atp-mac-resources.md#uninstalling).
|
||||||
|
|
||||||
|
### Script
|
||||||
|
|
||||||
|
Create a script in **Settings > Computer Management > Scripts**.
|
||||||
|
|
||||||
|
This script removes Microsoft Defender ATP from the /Applications directory:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
echo "Is WDAV installed?"
|
||||||
|
ls -ld '/Applications/Microsoft Defender ATP.app' 2>/dev/null
|
||||||
|
|
||||||
|
echo "Uninstalling WDAV..."
|
||||||
|
rm -rf '/Applications/Microsoft Defender ATP.app'
|
||||||
|
|
||||||
|
echo "Is WDAV still installed?"
|
||||||
|
ls -ld '/Applications/Microsoft Defender ATP.app' 2>/dev/null
|
||||||
|
|
||||||
|
echo "Done!"
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### Policy
|
||||||
|
|
||||||
|
Your policy should contain a single script:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Configure the appropriate scope in the **Scope** tab to specify the machines that will receive this policy.
|
||||||
|
@ -77,35 +77,6 @@ There are several ways to uninstall Microsoft Defender ATP for Mac. Please note
|
|||||||
|
|
||||||
- ```sudo rm -rf '/Applications/Microsoft Defender ATP'```
|
- ```sudo rm -rf '/Applications/Microsoft Defender ATP'```
|
||||||
|
|
||||||
### With a script
|
|
||||||
|
|
||||||
Create a script in **Settings > Computer Management > Scripts**.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
For example, this script removes Microsoft Defender ATP from the /Applications directory:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
echo "Is WDAV installed?"
|
|
||||||
ls -ld '/Applications/Microsoft Defender ATP.app' 2>/dev/null
|
|
||||||
|
|
||||||
echo "Uninstalling WDAV..."
|
|
||||||
rm -rf '/Applications/Microsoft Defender ATP.app'
|
|
||||||
|
|
||||||
echo "Is WDAV still installed?"
|
|
||||||
ls -ld '/Applications/Microsoft Defender ATP.app' 2>/dev/null
|
|
||||||
|
|
||||||
echo "Done!"
|
|
||||||
```
|
|
||||||
|
|
||||||
### With a JAMF policy
|
|
||||||
|
|
||||||
If you are running JAMF, your policy should contain a single script:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
Configure the appropriate scope in the **Scope** tab to specify the machines that will receive this policy.
|
|
||||||
|
|
||||||
## Configuring from the command line
|
## Configuring from the command line
|
||||||
|
|
||||||
Important tasks, such as controlling product settings and triggering on-demand scans, can be done from the command line:
|
Important tasks, such as controlling product settings and triggering on-demand scans, can be done from the command line:
|
||||||
|
Reference in New Issue
Block a user