Block signing into Office: registry value signinoptionsUserHKCU\software\policies\microsoft\office\16.0\common\signin

Policy ID
L_SignInOptions
Scope
User Configuration
Supported on
At least Windows Server 2008 R2 or Windows 7
Source
Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
Category
Microsoft Office 2016 › Miscellaneous

Registry

signinoptions

REG_DWORDUser
Enabled value
Depends on the option value
Element
Block signing into Office
Options
ItemStored value
Both IDs allowed0
Microsoft Account only1
Org ID only2
None allowed3
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\signin]

; Options (use only one)
; Both IDs allowed
"signinoptions"=dword:00000000
; Microsoft Account only
"signinoptions"=dword:00000001
; Org ID only
"signinoptions"=dword:00000002
; None allowed
"signinoptions"=dword:00000003
CMD
:: Options (use only one)

:: Both IDs allowed
reg add "HKCU\software\policies\microsoft\office\16.0\common\signin" /v "signinoptions" /t REG_DWORD /d 0 /f
:: Microsoft Account only
reg add "HKCU\software\policies\microsoft\office\16.0\common\signin" /v "signinoptions" /t REG_DWORD /d 1 /f
:: Org ID only
reg add "HKCU\software\policies\microsoft\office\16.0\common\signin" /v "signinoptions" /t REG_DWORD /d 2 /f
:: None allowed
reg add "HKCU\software\policies\microsoft\office\16.0\common\signin" /v "signinoptions" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signin' -Force | Out-Null

# Options (use only one)
# Both IDs allowed
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signin' -Name 'signinoptions' -PropertyType DWord -Value 0 -Force | Out-Null
# Microsoft Account only
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signin' -Name 'signinoptions' -PropertyType DWord -Value 1 -Force | Out-Null
# Org ID only
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signin' -Name 'signinoptions' -PropertyType DWord -Value 2 -Force | Out-Null
# None allowed
New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\common\signin' -Name 'signinoptions' -PropertyType DWord -Value 3 -Force | Out-Null