Python Forum
How to become Administrator, once in Command Prompt - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Bar (https://python-forum.io/forum-27.html)
+--- Thread: How to become Administrator, once in Command Prompt (/thread-9343.html)



How to become Administrator, once in Command Prompt - sylas - Apr-03-2018

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.



RE: How to become Administrator, once in Command Prompt - snippsat - Apr-03-2018

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]


RE: How to become Administrator, once in Command Prompt - metulburr - Apr-03-2018

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-7/change-how-windows-7-prompts-for-admin-approval-mode/


RE: How to become Administrator, once in Command Prompt - snippsat - Apr-03-2018

(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.


RE: How to become Administrator, once in Command Prompt - sylas - Apr-03-2018

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.