Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Error in PSDWizardNew.psm1 Language Selection #123

Open
Tenster opened this issue Jan 15, 2024 · 3 comments
Open

BUG: Error in PSDWizardNew.psm1 Language Selection #123

Tenster opened this issue Jan 15, 2024 · 3 comments
Assignees

Comments

@Tenster
Copy link

Tenster commented Jan 15, 2024

I observed that when attempting to select the language in the Locale tab, the Next button becomes greyed out.

Subsequently, I have to backtrack and simply skip the language selection to set it. While investigating in PowerShell, I encountered an error that directed me to the PSDWizardNew.psm1 file:

$Global:OSSupportedLanguages = @(($Global:OperatingSystemList | Where-Object Guid -eq $TSAssignedOSGUID).Language)
        #Get only available locales settings from Select OS
        $Global:LanguageList = $Global:PSDWizardLocales | Where-Object-Object {$_.Culture -in $Global:OSSupportedLanguages} | Select-Object -Unique

Upon closer inspection, it appears that there is an extra "-Object" in the Where-Object cmdlet, leading to this error.

@Tenster
Copy link
Author

Tenster commented Jan 15, 2024

I edited the PSDWizardNew. The Error is not there anymore, but the Button still gets greyed out

@GeoSimos GeoSimos self-assigned this Jan 15, 2024
@GeoSimos
Copy link
Collaborator

I observed that when attempting to select the language in the Locale tab, the Next button becomes greyed out.

Subsequently, I have to backtrack and simply skip the language selection to set it. While investigating in PowerShell, I encountered an error that directed me to the PSDWizardNew.psm1 file:

$Global:OSSupportedLanguages = @(($Global:OperatingSystemList | Where-Object Guid -eq $TSAssignedOSGUID).Language)
        #Get only available locales settings from Select OS
        $Global:LanguageList = $Global:PSDWizardLocales | Where-Object-Object {$_.Culture -in $Global:OSSupportedLanguages} | Select-Object -Unique

Upon closer inspection, it appears that there is an extra "-Object" in the Where-Object cmdlet, leading to this error.

Nice catch!
This issue is for @PowerShellCrack to take care of and assist you further.

@PowerShellCrack
Copy link
Contributor

I am looking into this. thanks for catching it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants