How to change errors language on English in Powershell?

drClays 146 Reputation points
2021-03-12T09:24:52.693+00:00

Hello,

I use powershell on my local computer in Polish language and when I make scripts they show me errors in Polish language and sometimes in English. I would like to get errors only in English language.

I looking for solution in google, but solutions from year 2015 or lower doesn't get me solution.

Someone know how to change it now ?

My PSVersion is 5.1.x

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,381 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 45,091 Reputation points
    2021-03-12T20:11:31.69+00:00

    Does this help (just replace "english" with "another language")? 560456-how-to-change-powershell-script-errors-to-english

    There are certain properties (I forget which) of an Error object that cannot be localized. If those parts were to be localized there would be many problems with the portability of code.

    0 comments No comments