cmd Scripts ask for elevated prompt


  1. Posts : 20
    Win 10 - 1709 -x64 Fr-CA
       #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 Computers


  2. Posts : 20
    Win 10 - 1709 -x64 Fr-CA
    Thread Starter
       #2

    No One ?
      My Computers


  3. Posts : 20
    Win 10 - 1709 -x64 Fr-CA
    Thread Starter
       #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 Computers


  4. Posts : 8,111
    windows 10
       #4

    You need to be admin to run console
      My Computer


  5. Posts : 15,487
    Windows10
       #5

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


  6. Posts : 20
    Win 10 - 1709 -x64 Fr-CA
    Thread Starter
       #6

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


  7. Posts : 20
    Win 10 - 1709 -x64 Fr-CA
    Thread Starter
       #7

    I solved my problem with Display fusion.
    I created a shortcut directly to DSA.exe and forcing it to "Run as an admin"
    cmd Scripts ask for elevated prompt-capture.png
      My Computers


 

  Related Discussions
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 00:53.
Find Us




Windows 10 Forums