Thursday, December 24, 2020

Remove unknown locale qaa-Latn from windows

Got a fresh window 10 installation where I configure US keyboard as default and added Greek as well (the language with π and Σ symbols). I noticed that when I was switching languages a 3rd locale (qaa-Latn) appeared in the list which I couldn't remove from the windows list. In my case the keyboard was emitting Greek characters but the windows spelling couldn't recognize the words. In order to remove the extra locale I had to use the following powershell.

# First add it to the list (it is not there initially)
$LanguageList = Get-WinUserLanguageList
$LanguageList.Add("qaa-latn")
Set-WinUserLanguageList $LanguageList -Force
# Refresh the list (may not be needed)
$LanguageList = Get-WinUserLanguageList
# Get reference to the locale we want to remove
$Language = $LanguageList | where LanguageTag -eq "qaa-Latn"
$LanguageList.Remove($Language)
Set-WinUserLanguageList $LanguageList -Force
# Thanks to https://superuser.com/a/1540185

Sunday, September 20, 2020

Set proxy for command line in windows

 Ever wanted to force tools like curl and az cli to pass their traffic through a proxy while running them in cmd.exe?

Set the following environment variables and netsh will automatically pick up them and use them for all network connectivity.

Rem Based on https://stackoverflow.com/questions/26992886/set-proxy-through-windows-command-line-including-login-parameters
set HTTP_PROXY=http://proxy_userid:proxy_password@proxy_ip:proxy_port
set FTP_PROXY=%HTTP_PROXY%
set HTTPS_PROXY=%HTTP_PROXY%

Tuesday, February 18, 2020

Download new chromium based edge via powershell

If you ever need to download the stable version of the chromium based Edge via powershell, you can use the following one liner:


# Stable
# Invoke-WebRequest -Uri "https://c2rsetup.officeapps.live.com/c2r/downloadEdge.aspx?ProductreleaseID=Edge&platform=Default&version=Edge&source=EdgeStablePage&Channel=Stable&language=en" -OutFile "EdgeSetup.exe"
# Dev
Invoke-WebRequest -Uri "https://c2rsetup.officeapps.live.com/c2r/downloadEdge.aspx?ProductreleaseID=Edge&platform=Default&version=Edge&source=EdgeStablePage&Channel=Dev&language=en" -OutFile "EdgeSetup.exe"