Add readme file for GPO (#2350)

This commit is contained in:
Tasos Boulis 2022-11-03 15:43:53 +02:00 committed by GitHub
parent 6ae055728d
commit 40621c6553
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,20 @@
# Developer guide for using Group Policy Objects (GPO) (Windows)
## They are used to pre-configure servers, autoUpdater and server management settings
You can read more about GPOs [here](https://learn.microsoft.com/en-us/previous-versions/windows/desktop/policy/group-policy-objects)
## How to use them on your windows machine for development
1. Copy the files from this directory (`resources/windows/gpo`) to `C:\Windows\PolicyDefinitions` - the file `mattermost.admx` should go in `C:\Windows\PolicyDefinitions` and the file `mattermost.adml` should go in `C:\Windows\PolicyDefinitions/en-US`.
2. Press `Win` + `R` to open the "Run" box
3. Type `gpedit.msc` to open the Group Policy Editor
4. Select "Administrative Templates" => "Mattermost" - either in "Computer Configuration" or "User Configuration" it shouldn't matter.
5. On the right side panel Select the Policy you want to update, eg, "DefaultServerList" then click the "Edit policy setting" hyperlink/button.
6. Select the "Enabled" radio checkbox and click the "Show" button under Options.
7. A new windows opens where you can add Multiple values for pre-configured servers, where `value name` is the Server Name and `value` is the Server URL.
Example:
| Value Name | Value |
|------------|----------------------------------|
| Community | <https://community.mattermost.com> |
8. Now if you open your Mattermost desktop application you should be able to see the server in the server dropdown (team dropdown)