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

@ -1,34 +1,38 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<policyDefinitionResources revision="0.1" schemaVersion="1.0" > <policyDefinitionResources revision="0.1" schemaVersion="1.0" >
<displayName/> <displayName/>
<description/> <description/>
<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="mattermost">Mattermost</string> <string id="SUPPORTED_MMD44">Mattermost Desktop Application 4.4 or later</string>
<string id="DisableAutoUpdate">Disable Auto Updater</string> <string id="mattermost">Mattermost</string>
<string id="DisableAutoUpdate_Explain">If this policy is enabled, the Mattermost Desktop Application does not receive udpates. <string id="DisableAutoUpdate">Disable Auto Updater</string>
<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.
<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 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>
</stringTable> <string id="PreventGPU">Disable GPU hardware acceleration</string>
<presentationTable> <string id="PreventGPU_Explain">If this policy is enabled, the Mattermost Desktop Application does not use the GPU for hardware acceleration.
<presentation id="ServerURL">
<text>URL:</text> If this policy is disabled or not configured, the Mattermost Desktop Application does use the GPU for hardware acceleration.</string>
<textBox refId="ServerURL"> </stringTable>
<label/> <presentationTable>
</textBox> <presentation id="ServerURL">
</presentation> <text>URL:</text>
</presentationTable> <textBox refId="ServerURL">
</stringTable> <label/>
</resources> </textBox>
</presentation>
</presentationTable>
</resources>
</policyDefinitionResources> </policyDefinitionResources>

View file

@ -1,45 +1,54 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<policyDefinitions revision="0.1" schemaVersion="1.0"> <policyDefinitions revision="0.1" schemaVersion="1.0">
<policyNamespaces> <policyNamespaces>
<target prefix="mattermost" namespace="Mattermost.Policies"/> <target prefix="mattermost" namespace="Mattermost.Policies"/>
</policyNamespaces> </policyNamespaces>
<resources minRequiredRevision="0.1"/> <resources minRequiredRevision="0.1"/>
<supportedOn> <supportedOn>
<definitions> <definitions>
<definition name="SUPPORTED_MMD43" displayName="$(string.SUPPORTED_MMD43)"/> <definition name="SUPPORTED_MMD43" displayName="$(string.SUPPORTED_MMD43)"/>
</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"> <parentCategory ref="mattermost"/>
<parentCategory ref="mattermost"/> <supportedOn ref="SUPPORTED_MMD43"/>
<supportedOn ref="SUPPORTED_MMD43"/> <enabledValue>
<enabledValue> <decimal value="1"/>
<decimal value="1"/> </enabledValue>
</enabledValue> <disabledValue>
<disabledValue> <decimal value="0"/>
<decimal value="0"/> </disabledValue>
</disabledValue> </policy>
</policy> <policy name="PreventAddNewServer" class="Both" displayName="$(string.PreventAddNewServer)" explainText="$(string.PreventAddNewServer_Explain)" key="Software\Policies\Mattermost" valueName="PreventAddNewServer">
<policy name="PreventAddNewServer" class="Both" displayName="$(string.PreventAddNewServer)" explainText="$(string.PreventAddNewServer_Explain)" key="Software\Policies\Mattermost" valueName="PreventAddNewServer"> <parentCategory ref="mattermost"/>
<parentCategory ref="mattermost"/> <supportedOn ref="SUPPORTED_MMD43"/>
<supportedOn ref="SUPPORTED_MMD43"/> <enabledValue>
<enabledValue> <decimal value="1"/>
<decimal value="1"/> </enabledValue>
</enabledValue> <disabledValue>
<disabledValue> <decimal value="0"/>
<decimal value="0"/> </disabledValue>
</disabledValue> </policy>
</policy> <policy name="ServerURL" class="Both" displayName="$(string.ServerURL)" explainText="$(string.ServerURL_Explain)" key="Software\Policies\Mattermost" presentation="$(presentation.ServerURL)" >
<policy name="ServerURL" class="Both" displayName="$(string.ServerURL)" explainText="$(string.ServerURL_Explain)" key="Software\Policies\Mattermost" presentation="$(presentation.ServerURL)" > <parentCategory ref="mattermost"/>
<parentCategory ref="mattermost"/> <supportedOn ref="SUPPORTED_MMD43"/>
<supportedOn ref="SUPPORTED_MMD43"/> <elements >
<elements > <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">
</policies> <parentCategory ref="mattermost"/>
<supportedOn ref="SUPPORTED_MMD44"/>
<enabledValue>
<decimal value="1"/>
</enabledValue>
<disabledValue>
<decimal value="0"/>
</disabledValue>
</policy>
</policies>
</policyDefinitions> </policyDefinitions>