"%WL_HOME%\server\bin\beasvc" -install -svcname:"%DOMAIN_NAME%_%SERVER_NAME%" -depend:"domain92_AdminServer" -delay:"120000" -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%" -extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%" -cmdline:%CMDLINE%
Here,
Open a text editor and Copy – Paste the text given below into the editor:
SETLOCAL
set WL_HOME=C:\bea\weblogic92
set DOMAIN_NAME=domain92
set USERDOMAIN_HOME=C:\bea\user_projects\domains\domain92_JDK5
set SERVER_NAME= ManagedServer
set WLS_USER=weblogic
set WLS_PW=weblogic
set PRODUCTION_MODE=false
set ADMIN_URL=http://10.10.10.71:7001
call "C:\bea\weblogic92\server\bin\installSvcMS.cmd"
ENDLOCAL
Here,
Save the file as ‘myScriptMS.cmd’ in’C:\bea\weblogic92\server\bin’ and Run the ‘myScriptMS.cmd’.
Open ‘services.msc’ and select the service named something like ‘beasvc domain92_ManagedServer’ and start it, if it starts fine it means that the Weblogic Server as started fine.
Official documentation : http://e-docs.bea.com/wls/docs100/server_start/winservice.html
I hope it helps :)
Cheers :)
Unni