Vista/Windows7 - run non-elevated from elevated mode
Posted: 25 Sep 2011 04:17
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
- 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