This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set WinUserLanguageList as a variable | |
$lang = Get-WinUserLanguageList | |
# Clear the WinUserLanguageList | |
$lang.Clear() | |
# Add language to the language list | |
$lang.add("en-US") | |
# Remove whatever input method is present | |
$lang[0].InputMethodTips.Clear() | |
# Add this keyboard as keyboard language | |
$lang[0].InputMethodTips.Add('0409:00000414') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
$MyProcess = New-Object System.Diagnostics.Process | |
$MyProcess.StartInfo.FileName = "c:\MyProcess.exe" | |
$MyProcess.StartInfo.Arguments = "arguments for process" | |
$MyProcess.StartInfo.UseShellExecute = $false | |
$MyProcess.StartInfo.RedirectStandardInput = $true | |
$MyProcess.Start() | |
$StdIn = $MyProcess.StandardInput | |