Need Help for "run as administrator" without a password

Discussion in 'Windows 8' started by FeelGood1969, Jun 5, 2014.

  1. FeelGood1969

    FeelGood1969 MDL Novice

    Jul 26, 2013
    16
    1
    0
    hi,
    first sorry my english is not the best, i will try to explain what i am looking for.

    I think you know the function right click on a file and use "run as administrator".
    The file will run with administrator rights (without asking for a password).

    Another way is to set the funktion "run as administrator" in the shortcut.

    Will you use the "run as" funktion in a dos box you need a password for the administrator account.
    but i will not insert a pw, i will use it like right click "run as administrator" but without a right click ;)

    for example:

    runas /noprofile /user:administrator cmd.exe

    i will not use a pw !
     
  2. eydee

    eydee Guest

    What's the question?
     
  3. FeelGood1969

    FeelGood1969 MDL Novice

    Jul 26, 2013
    16
    1
    0
    i will run a program which needs administration rights and i will not enter the pw of the administrator.
    i will use it like the function right mouse click "run as administrator", but in a script.
     
  4. Bytebuster

    Bytebuster MDL Addicted

    Apr 30, 2013
    551
    203
    30
    #4 Bytebuster, Jun 5, 2014
    Last edited by a moderator: Apr 20, 2017
  5. byby

    byby MDL Novice

    May 11, 2014
    3
    0
    0
    Thus from the welcome screen, bang just three letters cmd, then click-right - > Execute as administrator, Apply the line of usual command:Clear to use) administrator; net user administrateur /active:yes on the welcome screen by the touch Windows or the shortcut WIN + C.
     
  6. EFA11

    EFA11 Avatar Guru

    Oct 7, 2010
    8,796
    6,751
    270
    Im guessing this person doesn't have admin access and uses a standard user account and trying to "run as admin", and cannot because not using an admin account.
     
  7. FeelGood1969

    FeelGood1969 MDL Novice

    Jul 26, 2013
    16
    1
    0
    okay i try to explain what i want.

    i will write a script that is using diskpart.
    diskpart needs adminrights if you want to have an output in a txt file.
    starting diskpart without adminrights the txt file is empty.
    if you start the script with "run as administrator" all outputs will written into the txt file.


    maybe this will help
     
  8. MrMagic

    MrMagic MDL Guru

    Feb 13, 2012
    5,706
    3,711
    180
    You need to put a ? after your question

    You're not asking anything
     
  9. FeelGood1969

    FeelGood1969 MDL Novice

    Jul 26, 2013
    16
    1
    0
    Okay only for you ;)

    How can i start a sript,which needs admin rights and that includes diskpart, without right click "run as administrator" or using a shortcut ????

    Better ??
     
  10. Superfly

    Superfly MDL Expert

    Jan 12, 2010
    1,131
    539
    60
    Mr JinJe has pointed you in the right direction... see here as well
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. MrMagic

    MrMagic MDL Guru

    Feb 13, 2012
    5,706
    3,711
    180
    Yea, remove the password from the Admin account or log into an Admin account
     
  12. FeelGood1969

    FeelGood1969 MDL Novice

    Jul 26, 2013
    16
    1
    0
    i know this works but....
    Sorry but this is not the way i am looking for.
     
  13. FeelGood1969

    FeelGood1969 MDL Novice

    Jul 26, 2013
    16
    1
    0
    @Whazzupsuperfly
    looking good my problem is i do not understand what this script exactly do.
     
  14. MrMagic

    MrMagic MDL Guru

    Feb 13, 2012
    5,706
    3,711
    180
    The whole point of having a "Run as Admin" password prompt, is to block people doing what you are trying to do

    MS would be pretty big fail if you could bypass their UAC without knowing the Admin password

    Turn UAC off ?
     
  15. GezoeSloog

    GezoeSloog MDL Addicted

    Feb 10, 2012
    660
    2,426
    30
    His admin acc have no pwd.
    He want to run script as admin from another acc.
    W/o creating shortcut or right clicking on it.
     
  16. FeelGood1969

    FeelGood1969 MDL Novice

    Jul 26, 2013
    16
    1
    0
    my admin acc has a pw and i know it, but i will run this script under an acc without admin rights.