I wonder if there is a solution to
- start a cmd Shell in elevated mode
- run a .cmd batch in elevated mode
- call another .cmd batch in non elevated mode (as the standard user)
without being asked for the password (silent or non-attended mode).
Under unix it is generally not a problem to change from root user to some other user.
Under Win7 you have to provide the password of the standard user even if you are in elevated mode ( e.g. wth "runas")
Reason: in elevated mode the permissions for accessing some resources (e.g. network dirves) are different from the normal user.
Peter
Vista/Windows7 - run non-elevated from elevated mode
Moderator: DosItHelp
Re: Vista/Windows7 - run non-elevated from elevated mode
'
But if both user's exist on both "networked" system's and have the same passw, you shouldn't have a problem !
Just make sure that the users or usergroups have all rights on the specified drive
But if both user's exist on both "networked" system's and have the same passw, you shouldn't have a problem !
Just make sure that the users or usergroups have all rights on the specified drive
Last edited by Ed Dyreen on 25 Sep 2011 05:46, edited 1 time in total.
Re: Vista/Windows7 - run non-elevated from elevated mode
Vista / Win7 has the UAC (User Account Controll). You can adjust its level.
Also, if you have the permissions, you could right click your batch file and "run as administrator".
Regards
aGerman
Also, if you have the permissions, you could right click your batch file and "run as administrator".
Regards
aGerman