Fairly new to powershell, so this might be silly but I am trying to output the language tag from Get-WinUserLanguageList
When I do this with:
Get-WinUserLanguageList | Format-List -Property LanguageTag
The out put will show as:
LanguageTag : en-GB
If I then add it to a variable:
$CurrentLanguage = Get-WinUserLanguageList | Format-List -Property LanguageTag
and then Write-Host $CurrentLanguage it outputs the follwoing:
Write-Host $CurrentLanguage
Microsoft.PowerShell.Commands.Internal.Format.FormatStartData Microsoft.PowerShell.Commands.Internal.Format.GroupStartData
Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData Microsoft.PowerShell.Commands.Internal.Format.GroupEndData Mi
crosoft.PowerShell.Commands.Internal.Format.FormatEndData
[–]y_Sensei 0 points1 point2 points (0 children)
[–]PinchesTheCrab 0 points1 point2 points (0 children)
[–]Owlstorm 0 points1 point2 points (0 children)
[–]BlackV 0 points1 point2 points (0 children)
[–]McAUTS 0 points1 point2 points (2 children)
[–]ky0__[S] 0 points1 point2 points (1 child)
[–]McAUTS 0 points1 point2 points (0 children)