ADMU usrClass Dat, Update if missing required permissions#262
Merged
Conversation
Contributor
Author
gweinjc
approved these changes
Jun 5, 2026
jworkmanjc
added a commit
that referenced
this pull request
Jun 10, 2026
* Cut 5167 system context changes v2 (#260) * patch for system context * changelog patch update * restore progressForm * remove extra write-hosts * regenerate from build * autogen initial commit for setting file permissions on userHive files (#262) * changelog datetime * Changes for datetime/ systemContextAPI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Issues
What does this solve?
If some user is missing their
usrClass.datrequired permissions they'll get a temp profile. It's something we've seen before but not identified a cause in our migration tooling. This change accounts for customers who find themselves in this case by proactively setting the required permissions during migration.Is there anything particularly tricky?
How should this be tested?
Perform a migration for some user. Before signing into that user's profile:
usrclass.datfile's permissions. Most likely you'll have to disable inheritance to do thissome.user(or the acl for the user you migrated)some.useraccount and attempt to sign in. They user will have a temp profile (which is what is expected)Set-DATFilePermission -Path "C:\Users\some.user\AppData\Local\Microsoft\Windows\usrclass.dat" -Username "some.user" -Type 'ntfs'some.userScreenshots
Some user might encounter this issue if their NTUSER.DAT or usrClass.dat file looked something like this:
Repairing the permissions with the code above (or what's called when migrating the account)
Note
Cursor Bugbot is generating a summary for commit f81633d. Configure here.