How to Run PowerShell or Command Prompt as Administrator in Windows?
Solução 1
1. Clique em the Start button or Procurar and enter DMC ou PowerShell;
2. On available items, Right Mouse Button click and select Run as administrator.
Solução 2
1. Imprensa Ctrl+Shift+Escape at the same time. Gerenciador de tarefas Windows will appear;
Ou
1. Right Mouse Button click on the taskbar and select Gerenciador de tarefas;
Ou
1. Imprensa Ctrl+Alt+Delete at the same time and click on Gerenciador de tarefas
2. Em Gerenciador de tarefas navigate to File\Run new task;
3. In the new window select Create this task with administrative privileges, digitar DMC ou PowerShell, e clique OK;
OBSERVAÇÃO: IF you enter Powershell ise, then run PowerShell ISE, por padrão (Powershell) runing PowerShell console.
Solução 3
1. Navigate to folder, where stored *.exe files;
Prompt de comando (DMC):
C:\WINDOWS\system32\cmd.exe
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Windows PowerShell ISE:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe
OBSERVAÇÃO: There are also Powershell.exe.xml and powershell_ise.exe.xml, don’t run them, run files with PowerShell icons.
2. Right Mouse button click at *.exe file and select Run as administrator.
Solução 4
If you use Windows 10 liberar 1703 and above:
Right Mouse button click on Start button and select Windows PowerShell (Administrador);
OBSERVAÇÃO: Em Servidor Windows available Command Prompt is like in Windows 1607 and above. Também, you replace Windows PowerShell with Command Prompt in Windows Configurações.
If you know other solutions – let me know in the comments.