Windows 10: cmd Scripts ask for elevated prompt Solved

  1.    29 Mar 2018 #1

    cmd Scripts ask for elevated prompt


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

    Code:
    @Echo Off
    C:\Windows\System32\runas.exe /netonly /user:domain\user  "mmc dsa.msc"
    It was working fine until I ran into this issue :

    Erreur de RUNAS : Impossible to execute - mmc dsa.msc
    740 :The requested operation requires elevation.

    Why now ?

    is it because I got tired of UAC and put my "normal" account into the local computer admin group ?
      My ComputersSystem Spec

  2.    03 Apr 2018 #2

    No One ?
      My ComputersSystem Spec

  3.    03 Apr 2018 #3

    I've tried this command also, with the same results :
    Code:
    runas /netonly /user:"domain.local\user.admin" c:\Windows\System32\dsac.exe
    cmd.exe said:
    Erreur de RUNAS : Impossible d’exécuter - c:\Windows\System32\dsac.exe
    740 : L’opération demandée nécessite une élévation.
      My ComputersSystem Spec

  4.    03 Apr 2018 #4

    You need to be admin to run console
      My ComputerSystem Spec

  5.    03 Apr 2018 #5

    Right click on .cmd file, select run as administrator.
      My ComputerSystem Spec

  6.    03 Apr 2018 #6

    My point is to make it run as an admin without having to do this step
      My ComputersSystem Spec

  7.    04 Apr 2018 #7

    I solved my problem with Display fusion.
    I created a shortcut directly to DSA.exe and forcing it to "Run as an admin"
    Click image for larger version. 

Name:	Capture.PNG 
Views:	9 
Size:	23.8 KB 
ID:	183435
      My ComputersSystem Spec


 

Related Threads
How to Create Elevated App Shortcut without UAC Prompt in Windows 10 When you open an application file with Run as administrator, you will get a UAC prompt for approval before the app is allowed to run with elevated rights. In addition,...
Solved Can’t Open Elevated Command Prompt in AntiVirus, Firewalls and System Security
Hello I just installed WIN 10 on an old laptop (if one can call a lenovo W700 a laptop), used a win7 product key and the authentication was accepted had to create a microsoft account, refuse to give them all kind of info... arghhh I am...
I am a standard user: there is no "Administrator" next to my name when I look at "Your Info" for my account in user settings. the output of "net localgroup administrators" does not contain my user name. I am on a domain-managed machine...
A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands in an elevated command prompt, you can perform tasks that require administrator rights on your computer without using the Windows...
Hi, I use an administrative mode (elevated) command prompt to maneuver through most of my day. I have a code editor (in this case, Crimson Editor) open at all times, and when I need to edit a file quickly, I simply type cedt <filename> at the...

Tags for this Thread

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:16.
Find Us