How to change errors language on English in Powershell?

drClays 151 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 for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.