User Profile Service service failed the logon (OSD)


The “User Profile Service service failed the logon (OSD)” error was given to me after I updated the task sequence at a customer a while back. The only thing updated was a new core-image with the latest updates and a new package for Internet Explorer 11.

profile

Other clients that were installed with the older task sequence stilled work and clients that were in use that had gotten the updates stilled worked, so this lead me to the package for IE 11. The installer was created using IEAK 11, described HERE, and as I thought this was the application causing the issue.

When creating a new package using IEAK, there is a bug, that prevents the default profile from loading correctly and a specific file from being copied. The file is named “iesqmdata_setup0.sqm” and is located somewhere under C:\Users\Default\. It seems the complete path is different on every system, but removing this file will solve the issue.

To verify that this is causing the error, you could check the event-viewer and look for the error code 1509.

To solve the issue, I put the following PowerShell script after IE 11 was installed to search for the file and remove it.

1 $filePath = "C:\Users\default\"
2 $fileName = "iesqmdata_setup0.sqm"
3 $item = Get-ChildItem -Recurse -Force $filePath -ErrorAction SilentlyContinue | Where-Object { ($_.PSIsContainer -eq $false) -and  ( $_.Name -like "*$fileName*") }
4 $file = $item.FullName
5 Remove-Item $file -Force

This is a bug, something that I hope MS will fix. I’ve seen this error from IE 9 and forward.