1
0
mirror of https://github.com/TommyTran732/Microsoft-Edge-Policies synced 2024-11-22 02:11:34 -05:00

Add macOS

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-11-19 03:19:06 -07:00
parent 4a5b41c6cf
commit 5d39c4c448
No known key found for this signature in database
GPG Key ID: D30DEC268D3FEB17
4 changed files with 63 additions and 1 deletions

View File

@ -1,3 +1,19 @@
# Microsoft Edge Policies
These policies are written for Linux. The mandatory prolicies should be put in `/etc/opt/edge/policies/managed/managed.json`, and the recommended policies should be put in `/etc/opt/edge/policies/recommended/recommended.json`
## Linux
The mandatory prolicies should be put in `/etc/opt/edge/policies/managed/managed.json`, and the recommended policies should be put in `/etc/opt/edge/policies/recommended/recommended.json`
## macOS
The mandatory prolicies should be put in `/Library/Managed Preferences/com.microsoft.Edge.plist`, and the recommended policies should be put in `/Library/Preferences/com.microsoft.Edge.plist`
macOS is problematic, as it will wipe `/Library/Managed Preferences` every boot if you are not using an MDM. I work around this by putting the policies in `/Library/Tomster Corporation`, and use a cronjob as root to copy it every boot:
```
@reboot sleep 5 && cp -r '/Library/Tomster Corporation/' '/Library/Managed Preferences'
```
I have also noticed that Microsoft Edge does not seem to reload Managed Preferences probably until the computer reboots. I am not sure if this is a macOS behavior or if it is caused because my machine is not enrolled in an MDM.
Alternatively, you can try to convert the .plist files to .mobileconfig files and install them as profiles.

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnableMediaRouter</key>
<false />
<key>CookiesBlockedForUrls</key>
<array>
<string>ntp.msn.com</string>
</array>
<key>DefaultGeolocationSetting</key>
<integer>2</integer>
<key>DefaultInsecureContentSetting</key>
<integer>2</integer>
<key>DefaultCookiesSetting</key>
<integer>4</integer>
<key>DefaultThirdPartyStoragePartitioningSetting</key>
<integer>1</integer>
<key>DefaultFileSystemReadGuardSetting</key>
<integer>2</integer>
<key>DefaultFileSystemWriteGuardSetting</key>
<integer>2</integer>
<key>DefaultWebBluetoothGuardSetting</key>
<integer>2</integer>
<key>DefaultWebHidGuardSetting</key>
<integer>2</integer>
<key>ShowPDFDefaultRecommendationsEnabled</key>
<false />
<key>SpotlightExperiencesAndRecommendationsEnabled</key>
<false />
<key>FeatureFlagOverridesControl</key>
<integer>1</integer>
<key>ExtensionInstallBlocklist</key>
<array>
<string>*</string>
</array>
<key>GamerModeEnabled</key>
<false />
<key>WindowsHelloForHTTPAuthEnabled</key>
<false />
<key>ImmersiveReaderGrammarToolsEnabled</key>
<false />
<key>EnhanceSecurityMode</key>
<integer>2</integer>
</dict>
</plist>