Skip to content
Latest
Horizon SSO on Windows 11 Stops at the Sign In Screen: LSA Protection Was the Cause
Omnissa Horizon December 5, 2026 15 min read Advanced

Horizon SSO on Windows 11 Stops at the Sign In Screen: LSA Protection Was the Cause

Horizon 2609.1 instant clones on Windows 11 showed the local admin or Other user tile instead of signing users in. Every Horizon setting was correct. The agent log said use SSO:false, and the cause was LSA protection (RunAsPPL). How we found it, what we ruled out, and the golden image script we use now.

We built a fresh Windows 11 golden image for Omnissa Horizon 2609.1, pushed it to an instant clone pool, and connected with a domain account. Instead of landing on the desktop, we got the Windows sign in screen with the local admin tile, or an “Other user” tile asking for a username and password. Single sign on just did not happen. The Connection Server had our credentials, the agent was healthy, and nothing in Horizon Console looked wrong.

It took a while to find, mostly because every obvious setting was already correct. The cause turned out to be Windows LSA protection. Here is how we tracked it down, what we checked along the way, and the script we now run on the golden image.

Environment: Windows 11 Enterprise, Omnissa Horizon 2609.1 (Connection Server and Agent), instant clone desktop pool on vSphere, users signing in with username and password from a trusted domain.

TL;DR

  • If Horizon SSO stops at the Windows sign in screen on Windows 11, check whether LSASS is running as a protected process.
  • Look for System event ID 12 from Microsoft-Windows-Wininit: “LSASS.exe was started as a protected process with level: 4”.
  • Set RunAsPPL and RunAsPPLBoot to 0 on the golden image, reboot, confirm event 12 is gone, then snapshot and push. SSO worked on the next clone.
  • This lowers credential theft protection, so make it a deliberate decision for the VDI OU, not a quiet registry tweak.

The symptom

From the user side it looks like this. You sign in to the Horizon client with your domain account, pick the desktop, and the session opens on the Windows lock screen. Depending on the image you either see the last local account (in our case the local admin used to build the image) or an “Other user” tile. Typing the domain password there works fine, which makes it easy to shrug off. But the whole point of Horizon SSO is that you never see that screen.

The agent debug log on the clone is where it gets interesting. Logs live under C:\ProgramData\Omnissa\Horizon\logs\, and the newest debug-*.txt is the one you want. Right after the agent pairs with the Connection Server, we saw this:

setting use SSO:false
...
Received partial credentials, no SSO

So the agent itself decided not to do SSO, and it made that call before any user connected. The Use SSO value under HKLM\SOFTWARE\Omnissa\Horizon\Node Manager on the golden image was true. Something on the clone was making the agent turn it off.

What we ruled out first

Before getting to the real cause we went through the usual list. None of these were the problem, but they are worth checking in this order because they are quick and they cover most SSO failures you will find in forum threads.

  • Connection Server SSO settings. Under Settings, Global Settings, Security, single sign on was enabled and set to never discard credentials.
  • Authenticators. No RADIUS, SAML or smart card authenticator was configured, so the Connection Server was receiving a real password.
  • Agent restrictions. No client restrictions or restricted tags on the pool or the Connection Server.
  • Domain trust. Our users come from a trusted domain. nltest /sc_verify and nltest /trusted_domains were healthy, and the users resolved fine. (If nltest returns access denied, your PowerShell window is not elevated.)
  • Group Policy. No Horizon agent policies under HKLM\SOFTWARE\Policies\Omnissa that touch SSO.
  • Smart card enforcement. scforceoption was 0.
  • Credential providers. Nothing in ExcludedCredentialProviders, and the Horizon credential provider (wscredp) was registered.
  • Windows 11 passwordless sign in. Windows 11 can hide password sign in in favour of Windows Hello, controlled by DevicePasswordLessBuildVersion. We set it to 0 so password sign in is always allowed. It did not fix SSO on its own, but we kept it.

We also set dontdisplaylastusername to 1 so the clone stops showing the admin account that built the image. That is a cosmetic fix, but it removes a confusing tile that users should never see.

The actual cause: LSA protection

With everything Horizon related checked, we started looking at what Windows does to credential providers and LSASS. The registry value that stood out was this one:

HKLM\SYSTEM\CurrentControlSet\Control\Lsa
    RunAsPPL    REG_DWORD    0x2

RunAsPPL controls LSA protection, which runs LSASS as a protected process light. A value of 1 turns it on with a UEFI lock, and 2 turns it on without the lock. Newer Windows 11 builds enable it on clean installs, and nobody had set it on purpose on this image. That fits: we had installed Windows from scratch for this golden image.

The registry value only tells you what Windows will do at the next boot. To see what actually happened this boot, check the System log for event 12 from Wininit:

$boot = (Get-CimInstance Win32_OperatingSystem).LastBootUpTime
Get-WinEvent -FilterHashtable @{
    LogName      = 'System'
    ProviderName = 'Microsoft-Windows-Wininit'
    Id           = 12
    StartTime    = $boot
} -MaxEvents 1 | Format-List TimeCreated, Message

On our image it returned:

LSASS.exe was started as a protected process with level: 4

Two small gotchas if you script this. The provider name has to be the full Microsoft-Windows-Wininit; plain Wininit fails with “The parameter is incorrect”. And when LSA protection is off there is no event at all, so Get-WinEvent throws “No events were found”. Wrap it in a try/catch and treat that as “not protected”.

Our working theory is that with LSASS protected, the Horizon agent cannot do what it needs to hand the credentials to its credential provider, so it falls back and reports use SSO:false at pairing. We have not seen Omnissa document this exact interaction for 2609.1, so treat that explanation as our reading of the evidence. What we can say for certain is the result: same image, same pool, LSA protection off, and SSO works.

The fix on the golden image

LSA protection is only read at boot, so this is a two pass job on the golden image: apply and reboot, then verify and shut down for the snapshot. We wrapped it in one script with a -Verify switch so it is hard to get the order wrong. We ran it from the vSphere console, since RDP to the image was not available.

Step 1: apply and reboot

Copy the script to C:\Temp and run it from an elevated PowerShell:

powershell -ExecutionPolicy Bypass -File C:\Temp\Set-HorizonGoldSSO.ps1

It exports the four registry keys it touches to C:\Temp first, so you can roll back with a double click. Then it sets:

  • Lsa\RunAsPPL = 0 and Lsa\RunAsPPLBoot = 0
  • Node Manager\Use SSO = true
  • PasswordLess\Device\DevicePasswordLessBuildVersion = 0
  • Policies\System\dontdisplaylastusername = 1

It also warns you if a GPO sets RunAsPPL (because that will turn it straight back on) or if Credential Guard is enabled, then offers to reboot.

Step 2: verify, then shut down

After the reboot, sign in once more and run:

powershell -ExecutionPolicy Bypass -File C:\Temp\Set-HorizonGoldSSO.ps1 -Verify

You want to see LSASS protected this boot: False and a green “RESULT: Ready”. Let the script shut the VM down, and do not sign in again before you take the snapshot. Then push the image to the pool and connect to a brand new clone. On ours, the Horizon client went straight to the desktop.

The script

# Set-HorizonGoldSSO.ps1: run on the Horizon GOLDEN IMAGE in an elevated PowerShell.
#
#   Step 1 (apply + reboot):
#     powershell -ExecutionPolicy Bypass -File C:\Temp\Set-HorizonGoldSSO.ps1
#   Step 2 (after the reboot, before snapshot):
#     powershell -ExecutionPolicy Bypass -File C:\Temp\Set-HorizonGoldSSO.ps1 -Verify
#
# Apply: turns off LSA protection (RunAsPPL), which made the agent report
# "use SSO:false" at pairing, and sets the other SSO values. Backs up first.
# Verify: confirms LSASS is no longer protected this boot and settings are in place,
# then offers to shut down for the snapshot.
#
# Security note: disabling LSA protection lowers credential-theft protection.
# Test in the lab pool and confirm your baseline allows it before production.

param([switch]$Verify)

#Requires -RunAsAdministrator
$ErrorActionPreference = 'Stop'
New-Item -ItemType Directory -Force C:\Temp | Out-Null
$stamp = Get-Date -Format yyyyMMdd-HHmmss
$mode  = if ($Verify) { 'verify' } else { 'apply' }
Start-Transcript "C:\Temp\Set-HorizonGoldSSO-$mode-$stamp.log" | Out-Null

$lsa  = 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa'
$lpol = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\System'
$nm   = 'HKLM:\SOFTWARE\Omnissa\Horizon\Node Manager'
$pl   = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device'
$sys  = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System'

function Write-Section($t) { Write-Host "`n== $t" -ForegroundColor Cyan }
function Get-Val($p, $n) {
    $v = (Get-ItemProperty -Path $p -Name $n -ErrorAction SilentlyContinue).$n
    if ($null -eq $v) { '<not set>' } else { $v }
}
function Show-State {
    '{0,-34} {1}' -f 'Lsa\RunAsPPL',                 (Get-Val $lsa 'RunAsPPL')
    '{0,-34} {1}' -f 'Lsa\RunAsPPLBoot',             (Get-Val $lsa 'RunAsPPLBoot')
    '{0,-34} {1}' -f 'Policy RunAsPPL (GPO)',        (Get-Val $lpol 'RunAsPPL')
    '{0,-34} {1}' -f 'Lsa\LsaCfgFlags (CredGuard)',  (Get-Val $lsa 'LsaCfgFlags')
    '{0,-34} {1}' -f 'Use SSO',                      (Get-Val $nm 'Use SSO')
    '{0,-34} {1}' -f 'DevicePasswordLessBuildVersion', (Get-Val $pl 'DevicePasswordLessBuildVersion')
    '{0,-34} {1}' -f 'dontdisplaylastusername',      (Get-Val $sys 'dontdisplaylastusername')
}
function Get-LsassProtectedThisBoot {
    # Wininit event 12 = "LSASS.exe was started as a protected process with level: N"
    $boot = (Get-CimInstance Win32_OperatingSystem).LastBootUpTime
    $ev = $null
    try {
        $ev = Get-WinEvent -FilterHashtable @{ LogName = 'System'; ProviderName = 'Microsoft-Windows-Wininit'; Id = 12; StartTime = $boot } `
              -MaxEvents 1 -ErrorAction Stop
    } catch { $ev = $null }   # "No events found" also lands here = not protected
    [pscustomobject]@{ Boot = $boot; Protected = [bool]$ev; Message = if ($ev) { $ev.Message } else { '' } }
}

Write-Section "Current state ($mode)"
Show-State
$p = Get-LsassProtectedThisBoot
"LSASS protected this boot ($($p.Boot)): $($p.Protected)  $($p.Message)"

if (-not $Verify) {
    Write-Section "Backup"
    foreach ($k in 'HKLM\SYSTEM\CurrentControlSet\Control\Lsa',
                   'HKLM\SOFTWARE\Omnissa\Horizon\Node Manager',
                   'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device',
                   'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System') {
        $f = "C:\Temp\" + ($k -replace '[\\ ]', '_') + "-$stamp.reg"
        reg export $k $f /y | Out-Null; "  $f"
    }

    Write-Section "Applying"
    Set-ItemProperty -Path $lsa -Name 'RunAsPPL'     -Value 0 -Type DWord
    Set-ItemProperty -Path $lsa -Name 'RunAsPPLBoot' -Value 0 -Type DWord
    if (Test-Path $nm) { Set-ItemProperty -Path $nm -Name 'Use SSO' -Value 'true' -Type String }
    else { Write-Warning "Horizon Node Manager key missing. Is Horizon Agent installed?" }
    if (-not (Test-Path $pl)) { New-Item -Path $pl -Force | Out-Null }
    Set-ItemProperty -Path $pl  -Name 'DevicePasswordLessBuildVersion' -Value 0 -Type DWord
    Set-ItemProperty -Path $sys -Name 'dontdisplaylastusername'        -Value 1 -Type DWord

    Write-Section "After"
    Show-State

    $gpo = Get-Val $lpol 'RunAsPPL'
    if ($gpo -ne '<not set>' -and $gpo -ne 0) {
        Write-Warning "A GPO sets RunAsPPL=$gpo and will turn LSA protection back on."
        Write-Warning "Set 'System > Local Security Authority > Configures LSASS to run as a protected process' = Disabled for the VDI OU."
    }
    if ((Get-Val $lsa 'LsaCfgFlags') -notin @('<not set>', 0)) {
        Write-Warning "Credential Guard (LsaCfgFlags) is enabled; it can also block SSO. Consider disabling it for the lab test."
    }

    Stop-Transcript | Out-Null
    Write-Host "`nLSA protection only changes at boot. After reboot, sign in and run:" -ForegroundColor Yellow
    Write-Host "  powershell -ExecutionPolicy Bypass -File C:\Temp\Set-HorizonGoldSSO.ps1 -Verify" -ForegroundColor Yellow
    $a = Read-Host "`nReboot now? (y/N)"
    if ($a -match '^[yY]') { Restart-Computer -Force }
    return
}

# ---- Verify mode ----
$ok = $true
if ($p.Protected)                                   { Write-Host "FAIL: LSASS still started as a protected process." -ForegroundColor Red; $ok = $false }
if ((Get-Val $lsa 'RunAsPPL') -ne 0)                { Write-Host "FAIL: RunAsPPL is not 0 (GPO may have reapplied it)." -ForegroundColor Red; $ok = $false }
if ((Get-Val $nm 'Use SSO') -ne 'true')             { Write-Host "FAIL: Use SSO is not true." -ForegroundColor Red; $ok = $false }
if ((Get-Val $pl 'DevicePasswordLessBuildVersion') -ne 0) { Write-Host "FAIL: passwordless sign-in still enforced." -ForegroundColor Red; $ok = $false }

Stop-Transcript | Out-Null
if ($ok) {
    Write-Host "`nRESULT: Ready. Shut down (do not sign in again), snapshot, push image, test a new clone." -ForegroundColor Green
    $a = Read-Host "Shut down now for snapshot? (y/N)"
    if ($a -match '^[yY]') { Stop-Computer -Force }
} else {
    Write-Host "`nRESULT: Not ready. Fix the FAIL items above, then re-run -Verify. Transcript in C:\Temp." -ForegroundColor Red
}

If it still fails: a diagnostic script for the clone

If a new clone still shows the sign in screen, run this on the clone right after a failed connect. It changes nothing. It collects the SSO related registry values, the credential providers, the logged on sessions and the relevant agent log lines into one text file in C:\Temp that you can copy out or attach to a support case.

# Get-HorizonSSODiag.ps1: read only Horizon SSO diagnostics. Run on an INSTANT CLONE
# (after a failed SSO connect) in an elevated PowerShell:
#   powershell -ExecutionPolicy Bypass -File C:\Temp\Get-HorizonSSODiag.ps1
# Changes nothing. Writes C:\Temp\HorizonSSO-<host>-<time>.txt to copy out.

New-Item -ItemType Directory -Force C:\Temp | Out-Null
$out = "C:\Temp\HorizonSSO-$env:COMPUTERNAME-$(Get-Date -Format yyyyMMdd-HHmmss).txt"

function Write-Section($t) { "`n===== $t =====" }
function V($p, $n) {
    $v = (Get-ItemProperty -Path $p -Name $n -ErrorAction SilentlyContinue).$n
    if ($null -eq $v) { $v = '<not set>' }
    '{0,-34} {1}' -f $n, $v
}

& {
    Write-Section "Machine"
    "Host: $env:COMPUTERNAME   Time: $(Get-Date)"
    $cs = Get-CimInstance Win32_ComputerSystem
    "Domain: $($cs.Domain)   PartOfDomain: $($cs.PartOfDomain)"
    $os = Get-CimInstance Win32_OperatingSystem
    "OS: $($os.Caption) $($os.Version)   LastBoot: $($os.LastBootUpTime)"

    Write-Section "Horizon Agent"
    Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*' -ErrorAction SilentlyContinue |
        Where-Object DisplayName -match 'Horizon|Omnissa' | ForEach-Object { "$($_.DisplayName)  $($_.DisplayVersion)" }
    Get-Service wsnm, ws_daas -ErrorAction SilentlyContinue | ForEach-Object { "Service $($_.Name): $($_.Status)" }

    Write-Section "Key SSO settings"
    V 'HKLM:\SOFTWARE\Omnissa\Horizon\Node Manager' 'Use SSO'
    V 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device' 'DevicePasswordLessBuildVersion'
    V 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' 'dontdisplaylastusername'
    V 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' 'scforceoption'
    V 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\System' 'ExcludedCredentialProviders'
    V 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa' 'RunAsPPL'
    V 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa' 'LsaCfgFlags'

    Write-Section "Node Manager (all values)"
    (Get-ItemProperty 'HKLM:\SOFTWARE\Omnissa\Horizon\Node Manager' -ErrorAction SilentlyContinue |
        Out-String).Trim()

    Write-Section "Agent Configuration values mentioning sso / smartcard / credential"
    Get-ChildItem 'HKLM:\SOFTWARE\Omnissa\Horizon' -Recurse -ErrorAction SilentlyContinue | ForEach-Object {
        $k = $_
        foreach ($n in $k.GetValueNames()) {
            if ($n -match 'sso|smartcard|credential|trueSSO') { "{0} :: {1} = {2}" -f $k.Name, $n, $k.GetValue($n) }
        }
    }

    Write-Section "Horizon policies (HKLM\SOFTWARE\Policies\Omnissa)"
    $pol = Get-ChildItem 'HKLM:\SOFTWARE\Policies\Omnissa' -Recurse -ErrorAction SilentlyContinue
    if ($pol) { $pol | ForEach-Object { $k = $_; $k.GetValueNames() | ForEach-Object { "{0} :: {1} = {2}" -f $k.Name, $_, $k.GetValue($_) } } }
    else { '<none>' }

    Write-Section "Credential providers"
    Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers' -ErrorAction SilentlyContinue |
        ForEach-Object { '{0}  {1}' -f $_.PSChildName, (Get-ItemProperty $_.PSPath).'(default)' }

    Write-Section "Sessions"
    quser 2>&1

    Write-Section "Agent log: SSO decisions (with 6 lines of context)"
    $log = Get-ChildItem 'C:\ProgramData\Omnissa\Horizon\logs\debug-*.txt' -ErrorAction SilentlyContinue |
        Sort-Object LastWriteTime | Select-Object -Last 1
    if ($log) {
        "Log: $($log.FullName)"
        Select-String -Path $log.FullName -Pattern 'setting use SSO' -Context 6,0 | Select-Object -Last 2 |
            ForEach-Object { $_.Context.PreContext; $_.Line; '---' }
        Write-Section "Agent log: last SSO / credential lines"
        Select-String -Path $log.FullName -Pattern 'partial credentials|full credentials|doStartSession|GetCredentialCount|portalcount|EnumerateCredentials|SendCAD|use SSO' |
            Select-Object -Last 25 | ForEach-Object { $_.Line }
    } else { 'No agent debug log found under C:\ProgramData\Omnissa\Horizon\logs' }
} *>&1 | Tee-Object -FilePath $out

"`nSaved: $out"

The line that matters most is the last setting use SSO in the agent log. If it says true and SSO still fails, look at Horizon Console, Monitor, Events for that machine. If it still says false with LSA protection confirmed off, you have found something different from what we hit, and an Omnissa support case with that report attached is the next step.

About the security trade off

LSA protection exists to stop tools from reading credentials out of LSASS memory. Turning it off is a real change, and it should go through whoever owns your security baseline. A few things made us comfortable with it for this pool:

  • Scope it with Group Policy. Instead of relying on the registry value in the image, set Computer Configuration, Administrative Templates, System, Local Security Authority, “Configures LSASS to run as a protected process” to Disabled, and link it only to the VDI OU. That documents the decision and stops a broader baseline GPO from quietly turning protection back on and breaking SSO again.
  • Instant clones do not live long. The desktops are refreshed at sign out, so anything that lands in LSASS memory does not stay there for weeks.
  • Keep the rest of the stack. Use LAPS or a randomized local admin password, keep EDR running with LSASS access alerts, and do not give users local admin.

If your baseline does not allow LSA protection to be off, it is worth asking Omnissa whether a later agent build supports SSO with it enabled, or looking at True SSO with certificate based sign in instead.

Golden image checklist

  • Check RunAsPPL and Wininit event 12 on every new Windows 11 build before installing the Horizon Agent.
  • Confirm Use SSO is true under the Node Manager key.
  • Set DevicePasswordLessBuildVersion to 0 and dontdisplaylastusername to 1.
  • Make sure no baseline GPO reapplies RunAsPPL to the VDI OU.
  • Shut down from the verify step and snapshot without signing in again.
  • Test on a brand new clone, not one that existed before the push.

Quick triage

From an elevated PowerShell on a clone that just failed SSO:

# Is LSA protection configured?
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa' | Select-Object RunAsPPL, RunAsPPLBoot, LsaCfgFlags

# Did LSASS actually start protected this boot?
Get-WinEvent -FilterHashtable @{ LogName='System'; ProviderName='Microsoft-Windows-Wininit'; Id=12 } -MaxEvents 1

# What did the agent decide?
$log = Get-ChildItem 'C:\ProgramData\Omnissa\Horizon\logs\debug-*.txt' | Sort-Object LastWriteTime | Select-Object -Last 1
Select-String -Path $log.FullName -Pattern 'setting use SSO|partial credentials' | Select-Object -Last 5

# Is SSO enabled on the agent?
Get-ItemProperty 'HKLM:\SOFTWARE\Omnissa\Horizon\Node Manager' -Name 'Use SSO'

If RunAsPPL is 1 or 2 and event 12 shows up, you are probably looking at the same problem we had. Fix the golden image, push it, and test on a fresh clone.

Share

Leave a comment

Comments need your full name and email — no anonymous comments. Your email is never published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.