change language in group infromation (whoami/groups) windows10
up vote
-2
down vote
favorite
I have method public static final String getWindowsEveryonePrincipalName()
which returns localized name for the "Everyone" Windows principal. This method starts new process with command whoami/groups Process process = new ProcessBuilder("whoami", "/groups").start();
, search in a result set for line which contains "S-1-1-0" and then return line.split("\s2,")[0]
.
I changed everything in system settings to the English language, but I still have the Russian word "Все" in a result of command whoami/groups. The method fails with java.lang.RuntimeException: java.nio.file.attribute.UserPrincipalNotFoundException
and return "???" instead of "Everyone". How can I change language here? enter image description here
java
add a comment |
up vote
-2
down vote
favorite
I have method public static final String getWindowsEveryonePrincipalName()
which returns localized name for the "Everyone" Windows principal. This method starts new process with command whoami/groups Process process = new ProcessBuilder("whoami", "/groups").start();
, search in a result set for line which contains "S-1-1-0" and then return line.split("\s2,")[0]
.
I changed everything in system settings to the English language, but I still have the Russian word "Все" in a result of command whoami/groups. The method fails with java.lang.RuntimeException: java.nio.file.attribute.UserPrincipalNotFoundException
and return "???" instead of "Everyone". How can I change language here? enter image description here
java
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I have method public static final String getWindowsEveryonePrincipalName()
which returns localized name for the "Everyone" Windows principal. This method starts new process with command whoami/groups Process process = new ProcessBuilder("whoami", "/groups").start();
, search in a result set for line which contains "S-1-1-0" and then return line.split("\s2,")[0]
.
I changed everything in system settings to the English language, but I still have the Russian word "Все" in a result of command whoami/groups. The method fails with java.lang.RuntimeException: java.nio.file.attribute.UserPrincipalNotFoundException
and return "???" instead of "Everyone". How can I change language here? enter image description here
java
I have method public static final String getWindowsEveryonePrincipalName()
which returns localized name for the "Everyone" Windows principal. This method starts new process with command whoami/groups Process process = new ProcessBuilder("whoami", "/groups").start();
, search in a result set for line which contains "S-1-1-0" and then return line.split("\s2,")[0]
.
I changed everything in system settings to the English language, but I still have the Russian word "Все" in a result of command whoami/groups. The method fails with java.lang.RuntimeException: java.nio.file.attribute.UserPrincipalNotFoundException
and return "???" instead of "Everyone". How can I change language here? enter image description here
java
java
edited Nov 9 at 22:09
asked Nov 9 at 21:10
no ki
12
12
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233315%2fchange-language-in-group-infromation-whoami-groups-windows10%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown