Hi, I am running the trial version of Robotask 5 on server
2008.
I am running batch files from robotask and need to run as
administrator.
Is there an option that I can select to do this.
Thanks
"run as administrator" server 2008
"run as administrator" server 2008
There is RG utility (Rights Growth)
Find it in RoboTask folder.
"C:\Program Files (x86)\RoboTask\RG.exe"
This utility requires Admin privileges and run any command line with Admin privileges
How to use:
RG [ /P ] <command_line>
/p - RG waits when the command will be finished
<command_line> - command line which to execute with admin rights.
Of course UAC will require confirmation of executing.
Find it in RoboTask folder.
"C:\Program Files (x86)\RoboTask\RG.exe"
This utility requires Admin privileges and run any command line with Admin privileges
How to use:
RG [ /P ] <command_line>
/p - RG waits when the command will be finished
<command_line> - command line which to execute with admin rights.
Of course UAC will require confirmation of executing.
Last edited by Oleg on Wed Dec 14, 2011 11:13 am, edited 1 time in total.
"run as administrator" server 2008
If your batch file doesn't require any interactions you can start it in service mode of RoboTask.
RoboTask-service is working under SYSTEM account (by default) and already have the admin privileges.
In this case RG.EXE is not necessary.
RoboTask-service is working under SYSTEM account (by default) and already have the admin privileges.
In this case RG.EXE is not necessary.
"run as administrator" server 2008
Oleg is the "RG [/P]" passed as a parameter?
example
I have a task which runs the .bat
it points to the .bats location and passes a parameter "--
create"
do I need to pass "RG [/P] --create"
Thomas
example
I have a task which runs the .bat
it points to the .bats location and passes a parameter "--
create"
do I need to pass "RG [/P] --create"
Thomas
Last edited by thjmcd on Thu Dec 22, 2011 4:22 pm, edited 1 time in total.
"run as administrator" server 2008
You run your batch file like this:
MyBat.cmd parameter1 parameter2 parameter3
With RG you should use such command line:
RG /p MyBat.cmd parameter1 parameter2 parameter3
MyBat.cmd parameter1 parameter2 parameter3
With RG you should use such command line:
RG /p MyBat.cmd parameter1 parameter2 parameter3
"run as administrator" server 2008
Thanks Oleg
I am now having an issue where I am being prompted to
allow the RG.exe to execute.
(User account control
Do you want to allow the following program from an
unknown Publisher to make changes to this computer?
Program name: RG.exe
Publisher: Unknown
File origin: Hard drive on this computer)
is there a way I can input yes for this?
I am now having an issue where I am being prompted to
allow the RG.exe to execute.
(User account control
Do you want to allow the following program from an
unknown Publisher to make changes to this computer?
Program name: RG.exe
Publisher: Unknown
File origin: Hard drive on this computer)
is there a way I can input yes for this?
"run as administrator" server 2008
I wrote about this earlier:
Of course you can turn UAC OFF at all.
In this case all applications can take maximal rights and you do not need to use RG at all.
But pay attention that you decrease security of your computer when you turn UAC OFF
You have to press "Yes" manually only. There is no way to automate this.Of course UAC will require confirmation of executing.
Of course you can turn UAC OFF at all.
In this case all applications can take maximal rights and you do not need to use RG at all.
But pay attention that you decrease security of your computer when you turn UAC OFF
"run as administrator" server 2008
Hi Oleg
I now have UAC turned off and my step is set up as below:
"C:\Program Files (x86)\RoboTask\RG.exe" /p
"C:\Batch.bat"
with a --create Parameter.
However when it runs i get an error E: 04/01/2012
14:44:39: An error occurred. Step #1 (Run "Batch.bat").
when I open cmd and run "C:\Program Files
(x86)\RoboTask\RG.exe" /p "C:\Batch.bat" everything runs
as expected.
would there be an additional setup that I'm missing?
Any help is much appreciated
Thanks Thomas
I now have UAC turned off and my step is set up as below:
"C:\Program Files (x86)\RoboTask\RG.exe" /p
"C:\Batch.bat"
with a --create Parameter.
However when it runs i get an error E: 04/01/2012
14:44:39: An error occurred. Step #1 (Run "Batch.bat").
when I open cmd and run "C:\Program Files
(x86)\RoboTask\RG.exe" /p "C:\Batch.bat" everything runs
as expected.
would there be an additional setup that I'm missing?
Any help is much appreciated
Thanks Thomas
"run as administrator" server 2008
You should use
C:\Program Files (x86)\RoboTask\RG.exe
as program name
and the rest command line parameters in the "parameters" field:
/p C:\Batch.bat --create
Also see beliw the example:
C:\Program Files (x86)\RoboTask\RG.exe
as program name
and the rest command line parameters in the "parameters" field:
/p C:\Batch.bat --create
Also see beliw the example:
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1380072790
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task368"
Hide=INTEGER|0
ID=INTEGER|507385064
LogOnAsUser=INTEGER|1
Name=STRING|"Run using RG"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
[Actions\Action1]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""RG.exe /p C:\Batch.bat --create"""
Params=FOLDER
[Actions\Action1\Params]
ifnonzero=STRING|"0"
params=STRING|"/p C:\Batch.bat --create"
program=STRING|"C:\Program Files (x86)\RoboTask\RG.exe"
runas=STRING|"0"
wait=STRING|"2"
Last edited by Oleg on Thu Jan 05, 2012 1:19 pm, edited 1 time in total.