Add GPO for controlling GPU (#936)

This commit is contained in:
JtheBAB 2019-03-04 21:01:03 +01:00 committed by William Gathoye
parent 6aa99d8afe
commit 995ef1d4a2
2 changed files with 82 additions and 69 deletions

View file

@ -5,21 +5,26 @@
<resources > <resources >
<stringTable > <stringTable >
<string id="SUPPORTED_MMD43">Mattermost Desktop Application 4.3 or later</string> <string id="SUPPORTED_MMD43">Mattermost Desktop Application 4.3 or later</string>
<string id="SUPPORTED_MMD44">Mattermost Desktop Application 4.4 or later</string>
<string id="mattermost">Mattermost</string> <string id="mattermost">Mattermost</string>
<string id="DisableAutoUpdate">Disable Auto Updater</string> <string id="DisableAutoUpdate">Disable Auto Updater</string>
<string id="DisableAutoUpdate_Explain">If this policy is enabled, the Mattermost Desktop Application does not receive udpates. <string id="DisableAutoUpdate_Explain">If this policy is enabled, the Mattermost Desktop Application does not receive udpates.
If this policy is disabled or not configured, the Mattermost Desktop Application receives updates. If this policy is disabled or not configured, the Mattermost Desktop Application receives updates.</string>
</string>
<string id="PreventAddNewServer">Prevent adding new Mattermost server</string> <string id="PreventAddNewServer">Prevent adding new Mattermost server</string>
<string id="PreventAddNewServer_Explain">If this policy is enabled, it is not possible to add new servers. <string id="PreventAddNewServer_Explain">If this policy is enabled, it is not possible to add new servers.
If this policy is disabled or not configured, it is possible to add new servers. If this policy is disabled or not configured, it is possible to add new servers.</string>
</string>
<string id="ServerURL">Server addresses</string> <string id="ServerURL">Server addresses</string>
<string id="ServerURL_Explain">If this policy is enabled, you can set one or more Mattermost server addresses. Use the syntax Servername,https://server.com|Servername2,https://server2.com <string id="ServerURL_Explain">If this policy is enabled, you can set one or more Mattermost server addresses.
Use the syntax:
Servername,https://server.com|Servername2,https://server2.com
If this policy is disabled or not configured, no servers are preconfigured.</string> If this policy is disabled or not configured, no servers are preconfigured.</string>
<string id="PreventGPU">Disable GPU hardware acceleration</string>
<string id="PreventGPU_Explain">If this policy is enabled, the Mattermost Desktop Application does not use the GPU for hardware acceleration.
If this policy is disabled or not configured, the Mattermost Desktop Application does use the GPU for hardware acceleration.</string>
</stringTable> </stringTable>
<presentationTable> <presentationTable>
<presentation id="ServerURL"> <presentation id="ServerURL">
@ -29,6 +34,5 @@ If this policy is disabled or not configured, no servers are preconfigured.</str
</textBox> </textBox>
</presentation> </presentation>
</presentationTable> </presentationTable>
</stringTable>
</resources> </resources>
</policyDefinitionResources> </policyDefinitionResources>

View file

@ -10,8 +10,7 @@
</definitions> </definitions>
</supportedOn> </supportedOn>
<categories> <categories>
<category displayName="$(string.mattermost)" name="mattermost"> <category displayName="$(string.mattermost)" name="mattermost"></category>
</category>
</categories> </categories>
<policies> <policies>
<policy name="DisableAutoUpdate" class="Machine" displayName="$(string.DisableAutoUpdate)" explainText="$(string.DisableAutoUpdate_Explain)" key="Software\Policies\Mattermost" valueName="DisableAutoUpdate"> <policy name="DisableAutoUpdate" class="Machine" displayName="$(string.DisableAutoUpdate)" explainText="$(string.DisableAutoUpdate_Explain)" key="Software\Policies\Mattermost" valueName="DisableAutoUpdate">
@ -41,5 +40,15 @@
<text id="ServerURL" valueName="URL" required="true" /> <text id="ServerURL" valueName="URL" required="true" />
</elements> </elements>
</policy> </policy>
<policy name="PreventGPU" class="Machine" displayName="$(string.PreventGPU)" explainText="$(string.PreventGPU_Explain)" key="Software\Policies\Mattermost" valueName="PreventGPU">
<parentCategory ref="mattermost"/>
<supportedOn ref="SUPPORTED_MMD44"/>
<enabledValue>
<decimal value="1"/>
</enabledValue>
<disabledValue>
<decimal value="0"/>
</disabledValue>
</policy>
</policies> </policies>
</policyDefinitions> </policyDefinitions>