Vista/Windows7 - run non-elevated from elevated mode

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
pkass
Posts: 2
Joined: 25 Sep 2011 03:47

Vista/Windows7 - run non-elevated from elevated mode

#1 Post by pkass » 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

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Vista/Windows7 - run non-elevated from elevated mode

#2 Post by Ed Dyreen » 25 Sep 2011 05:42

'
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 :wink:
Last edited by Ed Dyreen on 25 Sep 2011 05:46, edited 1 time in total.

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Vista/Windows7 - run non-elevated from elevated mode

#3 Post by aGerman » 25 Sep 2011 05:44

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

Post Reply