en-US fslogix computer

Prevent Login With Temp Profile

Verified with Microsoft FSLogix — updated on July 10, 2026

Supported on: v2105 or later

Path in the GPO console

Computer Configuration\Administrative Templates\FS Logix\ODFC Containers

Description

Prevent user login when a user receives a temporary Windows profile. Registry Entry: HKLM\SOFTWARE\Policies\FSLogix\ODFC\PreventLoginWithTempProfile Type: DWORD Values: 0 = Disabled, 1 = Enabled

Registry

HKLM Software\Policies\FSLogix\ODFC

More options available

Options

PreventLoginWithTempProfile enum
  • Disabled -> 0
  • Enabled -> 1

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: Prevent Login With Temp Profile
; State: Enabled
; Supported on: v2105 or later

[HKEY_LOCAL_MACHINE\Software\Policies\FSLogix\ODFC]
"PreventLoginWithTempProfile"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Prevent Login With Temp Profile
# State: Enabled
# Supported on: v2105 or later

$path = 'HKLM:\Software\Policies\FSLogix\ODFC'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'PreventLoginWithTempProfile' -Value 0 -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