We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When calling a .NET function, sudo will incorrectly pass the command to the administrator instance, removing some characters.
sudo
PS> sudo [Environment]::SetEnvironmentVariable('Path', $value, 'Machine') ParserError: Line | 1 | [Environment]::SetEnvironmentVariable Path, 'C:\Users\bruno\desktop\D … | ~~~~ | Unexpected token 'Path' in expression or statement.
sudo removed the parenthesis, as well as the quotes on Path, causing the command to be syntactically incorrect.
Path
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When calling a .NET function,
sudo
will incorrectly pass the command to the administrator instance, removing some characters.Steps to reproduce:
sudo
removed the parenthesis, as well as the quotes onPath
, causing the command to be syntactically incorrect.The text was updated successfully, but these errors were encountered: