How to Run PowerShell or Command Prompt as Administrator in Windows?
Oplossing 1
1. Klik op de start button or Zoekopdracht and enter CMD or PowerShell;
2. On available items, Right Mouse Button click and select Als administrator uitvoeren.
Oplossing 2
1. druk op Ctrl+Shift+Escape at the same time. Taakbeheer windows will appear;
Or
1. Right Mouse Button click on the taskbar and select Taakbeheer;
Or
1. druk op Ctrl+Alt+Verwijderen at the same time and click on Taakbeheer
2. In Taakbeheer navigeren naar File\Run new task;
3. In the new window select Create this task with administrative privileges, binnenkomen CMD of PowerShell, en klik OK;
OPMERKING: IF you enter powershell ise, then run PowerShell ISE, standaard (krachtshell) runing PowerShell console.
Oplossing 3
1. Navigate to folder, where stored *.exe files;
Opdrachtprompt (CMD):
C:\WINDOWS\system32\cmd.exe
Windows PowerShell:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Windows PowerShell ISE:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe
OPMERKING: 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 Als administrator uitvoeren.
Oplossing 4
If you use Windows 10 uitgave 1703 and above:
Right Mouse button click on Start button and select Windows PowerShell (beheerder);
OPMERKING: In Windows Server available Command Prompt is like in Windows 1607 and above. Ook, you replace Windows PowerShell with Command Prompt in Windows Settings.
If you know other solutions – let me know in the comments.