.bat file with admin rights ?

Soldato
Joined
2 Dec 2002
Posts
6,581
Location
N.Ireland
Hi all, i work in a call centre as an IT admin/tech.

When our agents login, a .bat file is run to download and register several files, most are .dll and .ocx files and these work file, however, i have had to add two .exe files and allthough they copy fine into the designated dir when an admin runs the bat file, it fails if an agent runs the .bat, i need to know if there is a command or prefix that can be added to the regserver command, to elevate the .bat file to run with admin rights.

The command failing for the agents is as follows:

%system32%CMCTIFoxproCTI.exe /regserver

Is there any commands etc that can be added to this line or the .bat as a whole, that will allow it to run with admin rights.

Cheers for any help :)
 
Last edited:
Is this of any use to you? It's a VB script that allows the execution of a script / executable using the 'runas' command without being prompted for a password.

Check this thread:
 
Back
Top Bottom