1

Possible Duplicates:
Automatically run an application as another user
"Run as" for a .bat file

I have an application which uses floating license concept. We have configured a NT user for acquiring the license.

Now that I have installed this application on our sever which is Windows 2008 R2.

This application is being called by a batch file, which is scheudled.

How can I always make this application run as the specific NT user who has access to the license server?

KK99
  • 141
  • 5
  • this might not work as i call the exe from a batch file. thx for the link – KK99 Nov 16 '11 at 15:22
  • 1
    Then perhaps also check out: [“Run as” for a .bat file](http://superuser.com/questions/105913/run-as-for-a-bat-file) :) – Ƭᴇcʜιᴇ007 Nov 16 '11 at 15:24
  • Also, if you are having trouble running the batch with RunAs, try using RunAs with CMD, and have CMD launch the batch. Something like `runas /u:domain\user "cmd /c batch.bat"` – Ƭᴇcʜιᴇ007 Nov 16 '11 at 15:31
  • actually it was a mistake from my side. I call the batch file from ANT which is called by the build engine. – KK99 Nov 16 '11 at 15:52

0 Answers0