Advertisement

10.18.2007 at 04:40AM PDT, ID: 22901326
[x]
Attachment Details

Configuring a batch file to run apps as another user, with a username and password prompt.

Asked by bagz1 in MS DOS, Windows XP Operating System, Windows Batch Scripting

Tags: batch, user, file, run, another

We are changing the Network admin password at our company, and providing the individual analysts with their own network Admin accounts.

Currently due to policies/restrictions that are in effect within our company our analysts have to run batch files to access certain areas of our users PC's e.g Control panel, registry.

These batch files allow analysts to access the control panel, registry, local disk as the Network administrator giving them full access.

Example code:
runas.exe /user:domain\Administrator "explorer.exe /separate"

How can I change the code so that the batch file will prompt each analyst to enter their own Admin username and password and access these areas as themselves.Start Free Trial
[+][-]10.18.2007 at 04:43AM PDT, ID: 20099950

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS DOS, Windows XP Operating System, Windows Batch Scripting
Tags: batch, user, file, run, another
Sign Up Now!
Solution Provided By: Vorenus
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.18.2007 at 04:48AM PDT, ID: 20099969

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.18.2007 at 04:54AM PDT, ID: 20099993

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.18.2007 at 05:01AM PDT, ID: 20100022

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628