Managed settings
IT policy lets you set VDZ’s preferences centrally, in the same way as you manage a web browser such as Chrome or Edge.
VDZ reads policy when it starts. A change to policy takes effect the next time the user starts VDZ.
Two levels
You set each value at one of two levels.
| Level | Effect for the user |
|---|---|
| Mandatory | The value is in force. The user cannot change it in Preferences. The user’s own value is kept and comes back if you remove the policy. |
| Recommended | The value becomes the default. The user can choose another value and can reset back to yours. Users who have not chosen their own value follow later changes that you make. |
Any setting in Preferences can be set by policy. For example, you can make the
VDZ root folder Mandatory so that every designer uses the shared libraries, or
make update.mode Mandatory with the value off so that VDZ never checks for
updates.
A setting’s name in policy is its key in the user’s config.toml, for example
data.library_folder. See Pre-setting preferences
for the keys.
Where VDZ reads policy
| Platform | Policy store |
|---|---|
| Windows | The Group Policy part of the registry, for the computer and for the user. |
| macOS | A configuration profile from your device management tool. |
| Linux | The file /etc/vdz/policy.toml. |
Where the computer and the user both set a value at the same level, the computer’s value wins.
Windows
Set policy with VDZ’s Group Policy templates:
Copy VDZ.admx to the PolicyDefinitions folder of your central store, and
VDZ.adml to its en-US folder. On one computer with no domain, the folders
are C:\Windows\PolicyDefinitions and C:\Windows\PolicyDefinitions\en-US,
and the editor is gpedit.msc. For Intune, see Intune.
The Group Policy editor then shows two folders, under both Computer Configuration and User Configuration:
| Folder | Level |
|---|---|
| VDZ | Mandatory |
| VDZ - Recommended settings (users can change) | Recommended |
Inside each is a folder for each section of Preferences that has settings policy can set, such as General, Libraries and Updates. It holds one policy for each setting of that section, under the setting’s name in Preferences.
For a setting that is on or off, Enabled turns it on and Disabled turns it off. For any other setting, choose Enabled and give the value. Not Configured leaves the setting to the user.
The templates write to these registry keys, which you can also set yourself. The first two hold Mandatory values and the last two hold Recommended values.
| Key | Level | Applies to |
|---|---|---|
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\ZeroCross\VDZ\Settings | Mandatory | This computer |
HKEY_CURRENT_USER\SOFTWARE\Policies\ZeroCross\VDZ\Settings | Mandatory | This user |
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\ZeroCross\VDZ\Recommended\Settings | Recommended | This computer |
HKEY_CURRENT_USER\SOFTWARE\Policies\ZeroCross\VDZ\Recommended\Settings | Recommended | This user |
Each registry value in a key sets one setting. The value’s name is the setting’s name.
| Kind of setting | Registry type |
|---|---|
| On or off | REG_DWORD: 1 for on, 0 for off |
| Whole number, 0 or more | REG_DWORD |
| Any other number | REG_SZ, written as a number, for example 2.5 |
| Text, or one choice from a list | REG_SZ |
| List of text | REG_MULTI_SZ |
This example makes the VDZ root folder Mandatory on a computer:
reg add "HKLM\SOFTWARE\Policies\ZeroCross\VDZ\Settings" /v data.library_folder /t REG_SZ /d "\\server\share\VDZ"
The templates match the version of VDZ they came with. A setting added in a later version needs that version’s templates, or its registry value.
Intune
Intune takes the same two template files. Microsoft labels this feature Preview, so its screens can change. You need the Policy and Profile Manager role.
Import the templates:
- Sign in to the Microsoft Intune admin center.
- Select Devices > Manage devices > Configuration, then the Import ADMX tab, then Import.
- For ADMX file, choose
VDZ.admx. For ADML file for the default language, chooseVDZ.adml. - Select Next, then Create.
- Wait until the template’s Status is Available. Select Refresh to check.
The VDZ templates need no other template imported first.
Make a profile:
- Select Devices > Manage devices > Configuration > Create > New policy.
- For Platform, choose Windows 10 and later. For Profile type, choose Templates, then Imported Administrative templates (Preview). Select Create.
- In Basics, give the profile a name.
- In Configuration settings, set the VDZ settings you want. The folders are the same as in the Group Policy editor.
- In Assignments, choose the groups.
- In Review + create, select Create.
A setting for the computer applies to every user of that computer. A setting for the user applies to that user. Assign computer settings to device groups and user settings to user groups.
Intune limits:
- Intune holds up to 20 ADMX files, of 1MB or less each.
VDZ.admxis well under 1MB. - Intune takes one ADML file for each ADMX file, in English (en-US) only.
- Intune will not import templates that it already holds. To use the templates of a later version of VDZ, first delete the profiles that use the VDZ template, then delete the VDZ template on the Import ADMX tab, then import the new files and make the profiles again.
macOS
VDZ reads the preference domain com.zerocross.vdz from a configuration
profile. The Settings dictionary holds Mandatory values and the
RecommendedSettings dictionary holds Recommended values.
<key>Settings</key>
<dict>
<key>data.library_folder</key>
<string>/Volumes/Shared/VDZ</string>
</dict>
<key>RecommendedSettings</key>
<dict>
<key>ribbon.show_udc</key>
<true/>
</dict>
Use <true/> or <false/> for on or off, <integer> or <real> for a
number, <string> for text or a choice, and an <array> of <string> for a
list.
A sample profile to start from: VDZ.mobileconfig.
Change its settings, its PayloadIdentifier and PayloadOrganization values,
and give each PayloadUUID a new value (run uuidgen). Then deploy it with
your device management tool. In the sample, PayloadScope is System, which
sets the profile for the computer. Use User to set it for the user.
VDZ reads the profile for the computer and the profile for the user from
/Library/Managed Preferences, where macOS keeps them.
Linux
The file /etc/vdz/policy.toml has a [settings] table for Mandatory values
and a [recommended] table for Recommended values.
[settings]
"data.library_folder" = "/srv/vdz"
[recommended]
"ribbon.show_udc" = true
What the user sees
In Preferences, a setting under a Mandatory policy is greyed out and marked Managed by your organisation. A setting that still has your Recommended value is marked Recommended by your organisation. Each mark names where the value came from, for example Group Policy, this computer.
A user who has chosen their own value over a Recommended one has a Reset to organisation default button on that setting.
Quick Start, which VDZ opens on its first start, shows a Mandatory VDZ root folder greyed out, with the same mark. The user cannot change it there.
About VDZ says how many settings are managed, for example 3 settings are managed by your organisation.
Wrong values
A policy value that VDZ cannot use never stops VDZ starting. VDZ skips the value and uses the user’s own. This applies to:
- a value of the wrong type, or outside the setting’s limits;
- a name that is not a setting in the installed version;
- a policy file or profile that VDZ cannot read.
When VDZ has skipped a value, About VDZ says how many, for example 2 IT policy values were not applied. Point at that line to list them.
You can also press the **** key in VDZ to open the console, then type policy`. VDZ lists every skipped value, with its source and the reason.
What policy cannot set
Crash reporting cannot be set by policy, and the templates leave it out. It can only be turned off by deploying its own file. See Network access and privacy. VDZ lists a policy value for it as skipped.