What could be the reason why the NT AUTHORITY\NETWORK SERVICE
doesn't appear to me in english?
I'm having issues while running some powershell scripts that perform searches by the english name. I was only able to find results by the sid
.
I'm also having problems installing some certificates and I believe that's the reason why.
$objSID = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-20")
$objUser = $objSID.Translate([System.Security.Principal.NTAccount])
$objUser.Value
that returns to me NT AUTHORITY\Serviço de rede
(network service in Portuguese)
How can I change that to English ?
The NETWORK_SERVICE account name is localized using OS settings. You can change it by changing Windows to use English localization settings.
This account is not recognized by the security subsystem, so you cannot specify its name in a call to the LookupAccountName
function.
Your solution, lookup by SID, is the way to go.