Jump to content

I made a script to run a mmc console for de "Users & Computers of the domain" (DSA.EXE)

@Echo Off
C:\Windows\System32\runas.exe /netonly /user:domain\user  "mmc dsa.msc"

But I ran into this error :

RUNAS error: Impossible to execute - mmc dsa.msc


740 :The requested operation requires elevation.

 

I've also tried this :

runas /netonly /user:"domain.local\user.admin" c:\Windows\System32\dsac.exe

with the same error message above, as a result.

 

The web doesn't answer my question as all they say is :

Well, just right click on your batch file and run it as an admin !

 :dry:

 

What I want it to do, is in a dark black DOS like screen, ask me for my admin user's password to execute the program...

 

Please help :)

Thank you.

Link to comment
https://linustechtips.com/topic/912450-cmd-scripts-ask-for-elevated-prompt/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×