Skip to Content
author's profile photo Former Member
Former Member

Starting SAP with a Script after a VM Restore


On a daily basis we restore the Training System to a VM Check Point backup, taken some days ago.

This script runs on Windows Server 2012, and SQL Server 2012.

The script consists of the following:


sc config "SAPEQ1_00" start=Auto

sc config "SAPEQ1_01" start=Auto

timeout /t 15 /nobreak

net start "SAPEQ1_00"

net start "SAPEQ1_01"

startsap name=EQ1 nr=01 SAPDIAHOST=<Hostname>

startsap name=EQ1 nr=00 SAPDIAHOST=<Hostname>

startsap name=DAA nr=98 SAPDIAHOST=<Hostname>


the “sc config*” and “net start*” work perfectly, but unless eq1adm has been used to logon the SAP system does not start. Using the Windows Task Scheduler.

Has anyone seen this behavior before?

The task to run the script is run from the Task Scheduler and is configured to "Run wether user is logged on" and "Run with Highest privileges"

with <sid>adm

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 18, 2016 at 08:14 PM

    Hello David,

    Are the Windows Services SAPEQ1_00 and 01 being started as "SAPServiceEQ1"?

    Do you see any error when the issue is simulated? Where? What is the error?

    Instead of "startsap", have you tried to use "sapcontrol -nr <instance> -function Start" at your script?



    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Manas,

      Anyone who can reach the server through the TCP/IP port "5XX13" or "5XX14" would be able to call the "Stop" method (or any method other than "OSExecute", actually).

      * "XX" stands for the instance number

      By "reach" I mean not only locally (while logged on to the SAP server itself), but remotely as well.



  • author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2016 at 08:20 PM

    Hi David,

    Can you check if the below parameters are maintained in your SAP system Default/Instance profile:

    • service/protectedwebmethods = OSExecute
    • service/admin_users=.\<sid>adm



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.