How to Run PowerShell or Command Prompt as Administrator in Windows?
解决方案 1
1. 点击 开始 button or 搜索 and enter CMD or PowerShell;
2. On available items, 单击鼠标右键并选择 以管理员身份运行.
解决方案 2
1. 按 Ctrl+Shift+Escape at the same time. 任务管理器 windows will appear;
或者
1. Right Mouse Button click on the taskbar and select 任务管理器;
或者
1. 按 Ctrl+Alt+删除 at the same time and click on 任务管理器
2. 在 任务管理器 导航 File\Run new task;
3. In the new window select Create this task with administrative privileges, 进入 指令管理系统 或者 电源外壳, 然后单击 好的;
笔记: IF you enter powershell ise, then run PowerShell ISE, 默认情况下 (电源外壳) runing PowerShell console.
解决方案 3
1. Navigate to folder, where stored *.exe files;
命令提示符 (指令管理系统):
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
笔记: 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 以管理员身份运行.
解决方案 4
If you use Windows 10 发布 1703 以上:
Right Mouse button click on Start button and select Windows PowerShell (行政);
笔记: In Windows Server available Command Prompt is like in Windows 1607 以上. 还, you replace Windows PowerShell with Command Prompt in Windows Settings.
If you know other solutions – let me know in the comments.