Skip to content

Conversation

@JonahBader
Copy link

@JonahBader JonahBader commented Oct 29, 2025

I noticed the SetDefaultLang.ps1 script from AVD custom image templates wasn't working. When I reviewed the code, the registry path was formatted incorrectly, so the script treated them as paths rather than registry hives.

image

Existing reference to hive HKEY_USERS is invalid and results in the following error:
New-ItemProperty : Cannot find path 'C:\Windows\System32\HKU\.DEFAULT\Control Panel\International\Geo' because it does not exist.
At C:\AVDImage\setDefaultLanguage.ps1:79 char:5
New-ItemProperty -Path "HKU\.DEFAULT\Control Panel\International\ ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant