M
M
MishaQHabr2021-03-15 18:57:10
cmd/bat
MishaQHabr, 2021-03-15 18:57:10

How to save CMD command to file?

takeown /F "D:\1\New Folder" /R /DY only works when run as administrator. It didn’t work in notepad via cmd and it’s necessary that it doesn’t ask the admin on the screen when account administration is enabled.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dollar, 2021-03-15
@dollar

You cannot make such a CMD that it does not request admin rights if they are needed. These are basic safety requirements. Otherwise, without the knowledge of the user, any virus will do whatever it wants.
But you can change the OS itself and its settings to achieve the desired effect. For example , you can disable UAC .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question