'Run elevated powershell command from command prompt
powershell.exe Start-Process powershell.exe "set-executionpolicy" -Verb runAs
The above command will run a powershell window as admin and execute the command before it, however, if I want to make it say set-executionpolicy bypass, it will error out. How can I pass this parameter through the top command?
Below is the error I get when I pass said parameter:
Start-Process : A positional parameter cannot be found that accepts argument
'bypass'.
At line:1 char:1
+ Start-Process powershell.exe set-executionpolicy bypass -Verb runAs
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Start-Process], ParameterB
indingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell
.Commands.StartProcessCommand
Solution 1:[1]
You can use the –ExecutionPolicy switch directly on PowerShell.exe to bypass the execution policy.
powershell.exe –ExecutionPolicy Bypass
Solution 2:[2]
THIS is the solution: Right click run and type....
powershell -Command "Start-Process PowerShell -Verb RunAs"
Solution 3:[3]
setting bind-adress is sufficient mysqlx-bind-address is for the X plugin
if you want to know more about the X plugin you can go here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mark Wragg |
| Solution 2 | Patrick Burwell |
| Solution 3 | med benzekri |
