Setting a service to start automatically from the command line?
#1
Guys,
Ok, so I have the Remote Shell Service (rshsvc) and I'm installing it on many machines using a batch file I've created. Everything is ok but I don't know how to tell the service to be set to start automatically using the command line.
Anyone have any ideas how to, or will I just have to do it using the services applet on every machine I visit?
Ta,
Simon
Ok, so I have the Remote Shell Service (rshsvc) and I'm installing it on many machines using a batch file I've created. Everything is ok but I don't know how to tell the service to be set to start automatically using the command line.
Anyone have any ideas how to, or will I just have to do it using the services applet on every machine I visit?
Ta,
Simon
#4
Scooby Regular
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
could edit the registry to do it.. set the start value to 3 which is automatic... why do you want to do it via command line??
I can write you a script to do the above if thats any use?
Email me if you want..
David
I can write you a script to do the above if thats any use?
Email me if you want..
David
#5
Scooby Regular
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like
on
1 Post
ive re read your msg now... email me the service and batch file and Ill package it for you if you want so it will do everything for you... mail it to david.wallis@ventura-uk.com in a password protected zip file.. (stops at mailsweeper otherwise and I'd have to go find it...)
David
David
#6
David, thanks. The reason why I want to do it via 'command line' is basically I've written a batch file to copy the service files to the pc, install the service, and then start it. I wanted to integrate the 'start-up to automatic' change into that. At the mo it looks like this:
@echo off
echo Copying files
c:
cd\
cd winnt
cd system32
copy a:\rshsvc.dll
copy a:\rshsvc.exe
copy a:\rshsetup.exe
cd drivers
cd etc
copy a:\.rhosts
cd..
cd..
rshsetup %SystemRoot%\System32\rshsvc.exe %SystemRoot%\System32\rshsvc.dll
net start rshsvc
echo Done!
pause
Shall I just create a .reg file with the the string value and then call the file from the install batch file?
Thanks,
Simon
@echo off
echo Copying files
c:
cd\
cd winnt
cd system32
copy a:\rshsvc.dll
copy a:\rshsvc.exe
copy a:\rshsetup.exe
cd drivers
cd etc
copy a:\.rhosts
cd..
cd..
rshsetup %SystemRoot%\System32\rshsvc.exe %SystemRoot%\System32\rshsvc.dll
net start rshsvc
echo Done!
pause
Shall I just create a .reg file with the the string value and then call the file from the install batch file?
Thanks,
Simon
#7
ive re read your msg now... email me the service and batch file and Ill package it for you if you want so it will do everything for you... mail it to david.wallis@ventura-uk.com in a password protected zip file.. (stops at mailsweeper otherwise and I'd have to go find it...)
David
YHM in about 20 minutes.
Ta,
Simon.
Trending Topics
Thread
Thread Starter
Forum
Replies
Last Post
Scott@ScoobySpares
Full Cars Breaking For Spares
61
11 January 2021 03:08 PM
Scott@ScoobySpares
Full Cars Breaking For Spares
7
14 December 2015 08:16 AM