Page 1 of 1
start&stop TM1 service Automatically via batch file
Posted: Sun Nov 04, 2012 4:56 am
by svchowdary83
Hi,
My operating system is windowsserver 2008R2 Enterprise , now I want to stop and restart the tm1-server via a batch-file. TM1 server is running as a service. Do you have a hint how I can start/stop the server automatically?
I written inside batch script like this
start the service
netsvc /start \\T11 "TM1 Server-sample"
stop the service
netsvc /stop \\T11 "TM1 Server-sample"
Thanks,
Chowdary
Re: start&stop TM1 service Automatically via batch file
Posted: Sun Nov 04, 2012 8:18 am
by Martin Ryan
Re: start&stop TM1 service Automatically via batch file
Posted: Sun Nov 04, 2012 12:21 pm
by svchowdary83
Hi,
I have tried these ways
1.
NET STOP "TM1 Server / CUF2" /Y
NET STOP "TM1 Server / CUF2" /Y
Net stop&Net start commands are not working in windows server 2008 R2 Enterprise
2.
netsvc /start \\L-WTKL062 "TM1 Server-cuf2"
netsvc /start \\L-WTKL062 "TM1 Server-cuf2"
Netsvc/start & Netsvc stop commands are not working in windows server 2008 R2 Enterprise
Re: start&stop TM1 service Automatically via batch file
Posted: Sun Nov 04, 2012 8:18 pm
by lotsaram
svchowdary83 wrote:Net stop&Net start commands are not working in windows server 2008 R2 Enterprise ...
Netsvc/start & Netsvc stop commands are not working in windows server 2008 R2 Enterprise
These commands are only going to be "not working" if either
1/ you are passing the wrong service name
2/ the account running the command doesn't have privileges
Based on the names in your code I suspect it is the first possibility.
svchowdary83 wrote:NET STOP "TM1 Server / CUF2" /Y
Note that the
display name in the control panel services snap-in is NOT the name that you need to use to programatically interact with the service. If you click on the service and select properties you should need the actual name of the service. In your example it is probably simply "cuf2".