Solved

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

Posted on 2008-06-13
5
936 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
ID: 21780363
'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
ID: 21780487
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
ID: 21780572
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
ID: 21781202
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
ID: 21782579
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

929 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

13 Experts available now in Live!

Get 1:1 Help Now