Solved

Need to auto 'run as' a program using admin rights on low-level XP workstations

Posted on 2008-06-13
5
935 Views
Last Modified: 2008-06-13
I am wanting to run DriveImage XML on 60 domain workstations to create bare metal backups to a network drive.  The solution works great if logged in as administrator, or if I run as the program when logged in as a low level user.  I can automate the solution with a batch file and command line options, but I cannot safely use the runas command and supply an admin password to automate the program.

Is it possible to use a vbs file to automate the process of using runas, while supplying credentials?  I could then use the windows scheduler to launch the vbs file.

Here is the command line to launch the program...
"C:\Program Files\Runtime Software\DriveImage XML\dixml.exe" /bc /tz:\ /c /s- /v
0
Comment
Question by:murryc
  • 3
5 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
Comment Utility
'You could do that remotely from your machine using "PsExec" (http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx) so you don't have to hand out any passwords, e.g.
psexec.exe \\computer -u Administrator -p TopSecret "C:\Program Files\Runtime Software\DriveImage XML\dixml.exe" /bc /tz:\ /c /s- /v

Open in new window

0
 

Author Comment

by:murryc
Comment Utility
I love using psexec, but for some reason DriveImage does not launch using that remote program.  I can see that it runs the program (looking at the process tab) and I can also see that it scans the floppy drive (indicating that it has created a shadow image), but it never runs the backup and it never terminates.  I have to reboot the workstation to end the program.

When I execute the batch file on the actual workstation, the driveimage programs diplays, so I assume we need that to happen in order to complete a successful backup.

Any other ideas?  Maybe back to my first idea of using a batch or vbs file on the local workstation that will supply with proper credentials?
0
 
LVL 38

Assisted Solution

by:Shift-3
Shift-3 earned 250 total points
Comment Utility
You can also set it up as a Scheduled Task on each workstation and supply the desired credentials on the "Run as" line.

This can be scripted with the SCHTASKS command.
http://technet2.microsoft.com/windowsserver/en/library/1d284efa-9d11-46c2-a8ef-87b297c68d171033.mspx
0
 

Author Comment

by:murryc
Comment Utility
I will give that a try again.  I tried running it using the schecduler and providing the admin credentials, and the results were the same as it was using psexec.  The program never launched visually, it just ran in the background and never actually created a backup.

I do know with certanity that I can right click and runas and the program works perfectly.
0
 

Author Comment

by:murryc
Comment Utility
Found the perfect solution...
http://www.mast-computer.com/c_9-l_en.html

This allows me to supply an encrypted password to the runas command.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now