<p>The par défaut installé powershell v5.1 and the commands technically have <strong>no</strong> problèmes avec umlouts, so check that your input is encoded properly:<br>
Add-LocalGroupMember -Name ‘UMLÄUTS’ -Member ‘Me’</p>
<pre><code class="lang-auto">
The default installed version of Powershell (5.1) assumes script and text files are encoded in **UTF-8 with BOM** by default, so you can run into issues if the files are in plain UTF-8 (no BOM). For example:# wrong characters when file is UTF8
Get-Content 'test_utf8.txt'
umlauts: Ä Ö Å
success only when specifying encoding
Get-Content 'test_utf8.txt' -Encoding UTF8
umlauts: Ä Ö Å
</code></pre>
<p>For script fichiers themselves, vous pouvez re-encode the fichier like so, and it should run properly:<br>
`Get-Content -Path ‘.\script_utf8.ps1’ -Raw -Encoding UTF8 |<br>
Set-Content -Path ‘.\script_utf8_bom.ps1’</p>
<pre><code class="lang-auto">
Powershell v6 and newer par défaut to plain UTF-8 in this case, but be aware vous pouvez run invers le reverse problème running fichiers avec BOM.
See more details ici: about_Character_Encoding</code></pre>