Updated Test-AdminRights for non english systems#1
Open
juangranados wants to merge 1 commit intoclinthuffman:masterfrom
Open
Updated Test-AdminRights for non english systems#1juangranados wants to merge 1 commit intoclinthuffman:masterfrom
juangranados wants to merge 1 commit intoclinthuffman:masterfrom
Conversation
Test-AdminRights did not work on non english systems. Source: Hey Scripting Guy blog. http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/11/check-for-admin-credentials-in-a-powershell-script.aspx
Author
|
Hi Clint! Thank you for your amazing tool. I was installing it on a Windows Server with spanish languaje and Test-AdminRights always returned false because $oOutput variable contains spanish messages. I changed it by Scripting Guy function that works in all languages. |
Owner
|
Hi @clinthuffman for elevated detection this work for all systems langages : Thanks |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test-AdminRights did not work on non english systems.
Source: Hey Scripting Guy blog.
http://blogs.technet.com/b/heyscriptingguy/archive/2011/05/11/check-for-admin-credentials-in-a-powershell-script.aspx
Now it works on all Windows Versions.