Python Forum

Full Version: How to become Administrator, once in Command Prompt
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all ! What is the quickest way, once I am on Command Prompt:
Quote:C:\Users\Sylvain
λ bcdedit
The boot configuration data store could not be opened.
Access is denied.
As you use cmder now,here some setup tips that good to know.
[Image: xi70fk.jpg]
Setup administrator:
Output:
Right click on cmder.exe --> properties --> Change setup for all users --> Run this program as administrator --> mark on V

Shortcut to open Cmder in a chosen folder:
  1. Open a terminal as an Administrator
  2. Navigate to the directory you have placed Cmder
  3. Execute .\cmder.exe /REGISTER ALL If you get a message "Access Denied" ensure you are executing the command in an Administrator prompt.

ptpython work and look nice from cmder,it's a better REPL than than just start python.
pip install ptpython
[Image: mxL7WY.jpg]
i may be wrong as i dont use windows much. But from what i know you cant. You have to open an admin terminal from the start. Then run your program.

You could also elevate wihtout prompting but that is not as secure
https://www.online-tech-tips.com/windows...oval-mode/
(Apr-03-2018, 01:13 PM)metulburr Wrote: [ -> ]You have to open an admin terminal from the start. Then run your program.
There is no need for this as i explain over.
(Apr-03-2018, 01:13 PM)metulburr Wrote: [ -> ]You could also elevate wihtout prompting but that is not as secure
It's convenient as i don't want prompting every time i use cmder(it's always admin).
cmd do i have prompting before elevate,but that's okay as i almost never use cmd.
Thanks for your efforts. The only thing I succeeded is to install ptpython via C:\WINDOWS\system32
It works well on the above and also on cmder.
As for Administrator on cmder; no success: "failed to backup Conemu"
Since I can become Administrator with the old command prompt, there is not much harm.