PSD icon indicating copy to clipboard operation
PSD copied to clipboard

BUG: Error in PSDWizardNew.psm1 Language Selection

Open Tenster opened this issue 1 year ago • 6 comments

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 avatar Jan 15 '24 15:01 Tenster

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

Tenster avatar Jan 15 '24 16:01 Tenster

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.

GeoSimos avatar Jan 15 '24 22:01 GeoSimos

I am looking into this. thanks for catching it.

PowerShellCrack avatar Jan 28 '24 18:01 PowerShellCrack

@Tenster Please test this in the new release of PSD (version 2.30) and send feedback. Thanks

PowerShellCrack avatar Sep 16 '24 00:09 PowerShellCrack

Hello @PowerShellCrack, Thank you for informing me about the update, and I apologize for my delayed response. Unfortunately, the problem has worsened. I had to remove the modern design completely because selecting it initiates a task sequence even though none is selected and then runs into an error. Additionally, the language error persists.

Tenster avatar Sep 19 '24 08:09 Tenster

I'm sorry this is still happening.

We are not seeing this issue. Please be sure to update ur cs.ini with the one provided in the repo. Also if u get a chance send screenshots or the PSDStart.log

Thanks

PowerShellCrack avatar Sep 19 '24 22:09 PowerShellCrack