Open in the explorer

Client Environment

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Slack User Configuration › Policies › Administrative Templates › Slack
Supported on
Microsoft Windows 7 or later
ADMX file
slack.admx
Internal name
slack/ClientEnvironment

Explanation

Configures the client to run in either commercial mode or government compliance mode (GovSlack).

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Slack
HKEY_CURRENT_USER\Software\Policies\Slack
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Computer (HKLM)

Enable

# Enable: slack/ClientEnvironment
$k = 'HKLM:\Software\Policies\Slack'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Environment
# Possible options:
#   Commercial = 1000
#   GovSlack = 1001
Set-ItemProperty -Path $k -Name 'ClientEnvironment' -Value 1000 -Type DWord

Disable

# Disable: slack/ClientEnvironment
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": slack/ClientEnvironment
$k = 'HKLM:\Software\Policies\Slack'
Remove-ItemProperty -Path $k -Name 'ClientEnvironment' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
EnvironmentClientEnvironment_EnumDrop-down listenumClientEnvironmentREG_DWORD
Default choice (UI): #0
LabelValue
CommercialREG_DWORD = 1000
GovSlackREG_DWORD = 1001

Application

Slack (Salesforce) — October 2026 templates

October 2026 templates from pl4nty/web-admx-tool.