Link to home
Create AccountLog in
Avatar of IT CAMPER
IT CAMPERFlag for United States of America

asked on

Need to run DriveImage XML batch file as administrator from low-level user environment

I am needing to create images of all my domain workstations once a week.  I want to use DriveImage XML to perform this tack becuase is it free.  The issue is that all of the computers are logged in with low-level domain users (no local or domain admin rights).  I have created a successful batch file that launches DriveImage and completes the entire image backup to a network drive.  The issue is that it only runs when logged in as administrator.  On low-level users the batch file will launch (using the Windows scheduler with admin credentials), but the actual DriveImage program does not display and the backup never completes.

How can I run this scheduled program as a low-level user?
Avatar of SysExpert
SysExpert
Flag of Israel image

YOu need to run it with elevated rights, via a batch file CMD, DOS window, or using runas, command.

The problem is that the password will appear in the batch file, and that is a big security breach.

Other options are to use a bootable cD to do this, rather than trying to finish it via Windows.


I hope this helps !
Avatar of IT CAMPER

ASKER

Thanks for the feedback.  I would not mind giving the batch admin rights to run with becuase I now plan on pushing out the batch file using pexec which would give me full control from my admin workstation I use to push it out with.  This option works great when I push it out to a computer already logged in using an admin account.  Can you give me the coding I need to include in the batch file (or VBS file) that would launch the program with an admin account?

Running it in DOS is not going to work as I need to image about 60 computers on a LAN and do not want to visit each of them.
ASKER CERTIFIED SOLUTION
Avatar of IT CAMPER
IT CAMPER
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer