en-US office user

Mark grammar errors as you type

Verified with Microsoft 365/Office 5568.1000 — updated on September 4, 2026

Microsoft 365/Office 5568.1000

Supported on: At least Windows Server 2008 R2 or Windows 7

Path in the GPO console

User Configuration\Administrative Templates\Microsoft Word 2016\Word Options\Proofing

Description

Defines color to use for marking grammatical errors.

Registry

HKCU software\policies\microsoft\office\16.0\word\options

More options available

Options

Check to enforce setting on; uncheck to enforce setting off
autogrammar boolean
Color for marking grammatical errors
grammarwavyunderlinecolor enum
  • Black -> 0
  • Blue -> 255
  • Dark Blue -> 128
  • Light Blue -> 3368703
  • Sky Blue -> 52479
  • Pale Blue -> 10079487
  • Blue Gray -> 6710937
  • Green -> 65280 (default)
  • Dark Green -> 32768
  • Darker Green -> 13056
  • Light Green -> 13434828
  • Olive Green -> 3355392
  • Sea Green -> 3381606
  • Red -> 16711680
  • Dark Red -> 8388608
  • Yellow -> 16776960
  • Dark Yellow -> 8421376
  • Light Yellow -> 16777113
  • White -> 16777215
  • Brown -> 10040064
  • Orange -> 16737792
  • Light Orange -> 16750848
  • Cyan -> 65535
  • Dark Cyan -> 32896
  • Light Cyan -> 13434879
  • Magenta -> 16711935
  • Dark Magenta -> 8388736
  • Dark Teal -> 13158
  • Indigo -> 3355545
  • Lime -> 10079232
  • Aqua -> 3394764
  • Gold -> 16763904
  • Plum -> 10040166
  • Rose -> 16751052
  • Tan -> 16764057
  • Lavender -> 13408767
  • Gray -> 8421504
  • Gray 25% -> 12632256
  • Gray 50% -> 8421504

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Mark grammar errors as you type
; State: Enabled
; Supported on: At least Windows Server 2008 R2 or Windows 7

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\word\options]
"autogrammar"=dword:00000000
"grammarwavyunderlinecolor"=dword:0000ff00
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Mark grammar errors as you type
# State: Enabled
# Supported on: At least Windows Server 2008 R2 or Windows 7
# Warning: In SYSTEM context (the Intune default), HKCU targets the SYSTEM profile. Run this script using the logged-on credentials.

$path = 'HKCU:\software\policies\microsoft\office\16.0\word\options'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'autogrammar' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'grammarwavyunderlinecolor' -Value 65280 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview