【笔记】Apple描述文件

前言

Apple的描述文件用来统一企业级配置,类似Windows上的组策略
常见的描述文件有:Apple提供的App的内测权限配置、Apple提供的App的开发者权限配置、企业内用于定义App权限的配置
描述文件的扩展名为.mobileconfig

Mac上通过描述文件自定义MicrosoftEDGE配置

<key>DiagnosticData</key><integer>0</integer>:关闭诊断数据
<key>NewTabPageAppLauncherEnabled</key><false/>:关闭新页面左上角的微软应用菜单
<key>NewTabPageContentEnabled</key><false/>:关闭资讯内容
<key>NewTabPageHideDefaultTopSites</key><true/>:隐藏快捷链接
<key>AddressBarMicrosoftSearchInBingProviderEnabled</key><false/>:关闭搜索栏建议

edge.mobileconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?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>PayloadDisplayName</key>
<string>com.microsoft.edgemac</string>
<!-- 配置文件反向 DNS 格式的识别符(必填) -->
<key>PayloadIdentifier</key>
<string>com.microsoft.Edge.13D4EE1D-74BF-4963-AE69-88E61F9FD9EA</string>
<!-- 配置文件类型(必填) -->
<key>PayloadType</key>
<string>Configuration</string>
<!-- 配置文件 UUDI 格式的识别符(必填) -->
<key>PayloadUUID</key>
<string>6BAC9A8B-19F3-4876-99D9-BCA6C8B30238</string>
<!-- 配置文件的版本号(必填) -->
<key>PayloadVersion</key>
<integer>1</integer>
<!-- 配置文件的适用设备(选填,5 表示 Mac 平台) -->
<key>TargetDeviceType</key>
<integer>5</integer>
<!-- 下方拼接 PayloadContent 键及其内容 -->
<key>PayloadContent</key>
<dict>
<key>PayloadDisplayName</key>
<string>Microsoft Edge</string>
<key>PayloadIdentifier</key>
<string>com.microsoft.Edge.13D4EE1D-74BF-4963-AE69-88E61F9FD9EA</string>
<key>PayloadType</key>
<string>com.microsoft.Edge</string>
<key>PayloadUUID</key>
<string>AB70BBA2-D881-4C1A-8E36-9EE591429F3E</string>
<key>PayloadVersion</key>
<integer>1</integer>
<!-- 下方编写自定义配置 -->
<key>NewTabPageAppLauncherEnabled</key>
<false/>
<key>NewTabPageContentEnabled</key>
<false/>
<key>NewTabPageHideDefaultTopSites</key>
<true/>
</dict>
</dict>
</plist>

配置默认搜索引擎

name:配置搜索引擎名称
search_url:配置搜索URL,{searchTerms}为搜索的关键词的占位符

edge.mobileconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?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>PayloadDisplayName</key>
<string>com.microsoft.edgemac</string>
<!-- 配置文件反向 DNS 格式的识别符(必填) -->
<key>PayloadIdentifier</key>
<string>com.microsoft.Edge.13D4EE1D-74BF-4963-AE69-88E61F9FD9EA</string>
<!-- 配置文件类型(必填) -->
<key>PayloadType</key>
<string>Configuration</string>
<!-- 配置文件 UUDI 格式的识别符(必填) -->
<key>PayloadUUID</key>
<string>6BAC9A8B-19F3-4876-99D9-BCA6C8B30238</string>
<!-- 配置文件的版本号(必填) -->
<key>PayloadVersion</key>
<integer>1</integer>
<!-- 配置文件的适用设备(选填,5 表示 Mac 平台) -->
<key>TargetDeviceType</key>
<integer>5</integer>
<!-- 下方拼接 PayloadContent 键及其内容 -->
<key>PayloadContent</key>
<dict>
<key>PayloadDisplayName</key>
<string>Microsoft Edge</string>
<key>PayloadIdentifier</key>
<string>com.microsoft.Edge.13D4EE1D-74BF-4963-AE69-88E61F9FD9EA</string>
<key>PayloadType</key>
<string>com.microsoft.Edge</string>
<key>PayloadUUID</key>
<string>AB70BBA2-D881-4C1A-8E36-9EE591429F3E</string>
<key>PayloadVersion</key>
<integer>1</integer>
<!-- 下方编写自定义配置 -->
<key>ManagedSearchEngines</key>
<dict>
<key>is_default</key>
<true/>
<key>keyword</key>
<string>d</string>
<key>name</key>
<string>DDG Lite</string>
<key>search_url</key>
<string>https://lite.duckduckgo.com/lite/?q={searchTerms}</string>
</dict>
</dict>
</dict>
</plist>

在MicrosoftEDGE上查看策略

完成

参考文献

少数派——PlatyHsu