Run As Administrator

Associate
Joined
9 Sep 2008
Posts
40
Location
Moira, East Midlands
I am trying to run an application from a USB stick that performs hardware diagnostics on the computer on which it is connected. I need admin rights to complete the network diagnostic testing. A batch file is launched, through autorun, that launches a number of applications - the diagnostic tool, a text document with instructions and a help file.

I can right click the diagnostic tool application (from on the USB stick - this is not saved to the computer) and choose properties then Compatibility and tick the 'Run as administrator' box, but this only remembers those settings on that computer. I need to run this on multiple machines.

If I transfer that USB stick to another computer, I have to again choose to run it as administrator.

Is there a way to keep these settings so that it will run as admin from initial launch?
 
As far as I'm aware you won't be able to do this, because allowing a random application to run under administrator mode is bad.
 
This won't work, because of permissions issues on the other machine.

Besides think of how easy it would be for a virus or whatever to trash your system if they could do this. Even windows 98 wasn't that bad.

Kinda.
 
Is there not a way of exectuing the RUN AS Admin and the credentials within the batch file?

Other than that I'm not too sure you can do it. Do you have anything running like Symmantec End Point Protection? Again, not 100% sure but I think you can configure some devices to be able to do things like this unhindered by using Device-ID's, etc.

Just a thought!
 
I think the short answer is no.

If you log in as administrator on the computer in question you shouldn't have to specify "run as admin" in properties as you, administrator and starter of the process, will have admin rights.

If you're trying to run it on a computer you don't have an administrator password for then what you're asking for is something that will elevate you to administrator automatically, which under normal circumstances is not gonna happen. ;)
 
You could use TQCRunAs, associate it with an domain admin account when you create the main TQC control file and it will then always run with those privileges. TQC is a paid for product though.
 
I've tried the RunAs options but it's still not having it.

For some reason even though I am logging in as an admin user this particular application (BurninTest from Passmark) still requires running as administrator otherwise the Network loop test will not function correctly.

Thanks for your suggestions guys, but it's not a major headache to right click every time and run as admin.
 
Could use PSEXEC maybe and specify admin account details in the command line, then create a batch file to run it all?
 
Back
Top Bottom