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 !
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.
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.
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.
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
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 ??
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 ?
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.